diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-11-15 21:16:52 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-11-15 21:16:52 +0100 |
commit | 0226e35db7a740a842263e555a6d98e30f72f8d0 (patch) | |
tree | 6ca4cdeea879a1a584e375be48a2238720b48fb0 /scripts/functions | |
parent | a5b6b0d129bc6672203a0dfb844a24495a207235 (diff) | |
download | crosstool-ng-0226e35db7a740a842263e555a6d98e30f72f8d0.tar.gz crosstool-ng-0226e35db7a740a842263e555a6d98e30f72f8d0.tar.bz2 crosstool-ng-0226e35db7a740a842263e555a6d98e30f72f8d0.zip |
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/functions | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |