scripts/functions: use portable 'gzip -dc'
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Fri Nov 15 21:16:52 2013 +0100 (2013-11-15)
changeset 324701ef2159b12a
parent 3246 ff6b7a9bd370
child 3248 74cb9dc864ec
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>
scripts/functions
     1.1 --- a/scripts/functions	Fri Nov 15 18:58:42 2013 +0100
     1.2 +++ b/scripts/functions	Fri Nov 15 21:16:52 2013 +0100
     1.3 @@ -1336,7 +1336,7 @@
     1.4      CT_DoLog STATE "  Restoring log file"
     1.5      exec >/dev/null
     1.6      case "${CT_DEBUG_CT_SAVE_STEPS_GZIP}" in
     1.7 -        y)  zcat "${state_dir}/log.gz" >"${tmp_log_file}";;
     1.8 +        y)  gzip -dc "${state_dir}/log.gz" >"${tmp_log_file}";;
     1.9          *)  cat "${state_dir}/log" >"${tmp_log_file}";;
    1.10      esac
    1.11      cat "${state_dir}/tail.log" >>"${tmp_log_file}"