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: