From 8099ec1c8b540c745180a429601e6adcf45c77dc Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Mon, 12 Sep 2022 12:11:20 -0400 Subject: [PATCH] Fixed up fix --- mkstage4.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mkstage4.sh b/mkstage4.sh index dfc2918..e2cf6fb 100755 --- a/mkstage4.sh +++ b/mkstage4.sh @@ -241,10 +241,10 @@ fi COMP_OPTIONS=("${COMPRESS_AVAILABLE[$COMPRESS_TYPE]}") # This currently breaks the command, and is temporarily disables, see: # https://github.com/TheChymera/mkstage4/issues/46 -#if [[ "${COMPRESS_AVAILABLE[$COMPRESS_TYPE]}" == *"/xz" ]] -#then -# COMP_OPTIONS+=("-T0") -#fi +if [[ "${COMPRESS_AVAILABLE[$COMPRESS_TYPE]}" == *"/xz" ]] +then + COMP_OPTIONS+=( "-T0" ) +fi # Generic tar options: TAR_OPTIONS=( @@ -252,7 +252,7 @@ TAR_OPTIONS=( --ignore-failed-read "--xattrs-include='*.*'" --numeric-owner - "--use-compress-prog=\"${COMP_OPTIONS[*]}\"" + "--use-compress-prog=${COMP_OPTIONS[*]}" ) # if not in quiet mode, this message will be displayed: