From 0226e35db7a740a842263e555a6d98e30f72f8d0 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 15 Nov 2013 21:16:52 +0100 Subject: 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 diff --git a/scripts/functions b/scripts/functions index c58ccb3..13764a4 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}" -- cgit v0.10.2-6-g49f6