From 0226e35db7a740a842263e555a6d98e30f72f8d0 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 15 Nov 2013 21:16:52 +0100 Subject: [PATCH] scripts/functions: use portable 'gzip -dc' 'zcat' on MacOS-X is broken (it is not gzip's zcat, but compres' zcat). Use 'gzip -dc' for portability, as suggested by Anthony. Reported-by: Fernando Ortiz Signed-off-by: "Yann E. MORIN" Cc: Anthony Foiani --- scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions b/scripts/functions index c58ccb39..13764a41 100644 --- a/scripts/functions +++ b/scripts/functions @@ -1336,7 +1336,7 @@ CT_DoLoadState(){ CT_DoLog STATE " Restoring log file" exec >/dev/null case "${CT_DEBUG_CT_SAVE_STEPS_GZIP}" in - y) zcat "${state_dir}/log.gz" >"${tmp_log_file}";; + y) gzip -dc "${state_dir}/log.gz" >"${tmp_log_file}";; *) cat "${state_dir}/log" >"${tmp_log_file}";; esac cat "${state_dir}/tail.log" >>"${tmp_log_file}"