From 6288d1ae1ed6ccf97c10f67fd8e2091a3389e2ad Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Sun, 12 Mar 2023 01:21:19 -0500 Subject: [PATCH] Avoid globbing --- exstage4.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exstage4.sh b/exstage4.sh index 4a7bafc..c2393b8 100755 --- a/exstage4.sh +++ b/exstage4.sh @@ -15,11 +15,11 @@ else echo "Extracting \`${STAGE_FILE}\` inplace." fi -if [ $EXT == "xz" ]; then +if [ "$EXT" == "xz" ]; then tar -I 'xz -T0' -xvf "${STAGE_FILE}" --xattrs-include='*.*' --numeric-owner -elif [ $EXT == "bz2" ]; then +elif [ "$EXT" == "bz2" ]; then tar -I pbzip2 -xvf "${STAGE_FILE}" --xattrs-include='*.*' --numeric-owner -elif [ $EXT == "gz" ]; then +elif [ "$EXT" == "gz" ]; then tar -I unpigz -xvf "${STAGE_FILE}" --xattrs-include='*.*' --numeric-owner else echo "Not sure how to unpack \`${STAGE_FILE}\`"