mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
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>
This commit is contained in:
parent
a5b6b0d129
commit
0226e35db7
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user