summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2013-11-15 20:16:52 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2013-11-15 20:16:52 (GMT)
commit0226e35db7a740a842263e555a6d98e30f72f8d0 (patch)
tree6ca4cdeea879a1a584e375be48a2238720b48fb0 /scripts/functions
parenta5b6b0d129bc6672203a0dfb844a24495a207235 (diff)
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 <fortiz2k@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Anthony Foiani <anthony.foiani@gmail.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions2
1 files changed, 1 insertions, 1 deletions
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}"