From b1902316822c9626cae643c9bad942e011a79633 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Mon, 23 Oct 2017 09:48:49 -0500 Subject: [PATCH] [archive] Remove _gzip_bin and _bzip2_bin refs as these variables are not being set anymore. Fixes #220 --- modules/archive/functions/archive | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/archive/functions/archive b/modules/archive/functions/archive index 7f76113..9c5316e 100644 --- a/modules/archive/functions/archive +++ b/modules/archive/functions/archive @@ -27,8 +27,8 @@ fi # near-liner decrease in compression time based on on the number of available cores. case "${archive_name}" in - (*.tar.gz|*.tgz) tar -cvf "${archive_name}" --use-compress-program="${_gzip_bin:-gzip}" "${dir_to_archive}" ;; - (*.tar.bz2|*.tbz|*.tbz2) tar -cvf "${archive_name}" --use-compress-program="${_bzip2_bin:-bzip2}" "${dir_to_archive}" ;; + (*.tar.gz|*.tgz) tar -cvf "${archive_name}" --use-compress-program="gzip" "${dir_to_archive}" ;; + (*.tar.bz2|*.tbz|*.tbz2) tar -cvf "${archive_name}" --use-compress-program="bzip2" "${dir_to_archive}" ;; (*.tar.xz|*.txz) tar --xz --help &> /dev/null && tar -cvJf "${archive_name}" "${dir_to_archive}" ;; (*.tar.lzma|*.tlz) tar --lzma --help &> /dev/null && tar -cvf "${archive_name}" --lzma "${dir_to_archive}" ;; (*.tar) tar -cvf "${archive_name}" "${dir_to_archive}" ;;