From 694004ea08de34333a5e8c13c23a321bf7e1b2d3 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sat, 3 Aug 2024 14:30:32 -0400 Subject: [PATCH] Fixed problematic code with tar check --- exstage4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exstage4.sh b/exstage4.sh index 504a02b..7f6a831 100755 --- a/exstage4.sh +++ b/exstage4.sh @@ -97,7 +97,7 @@ fi archiveExt="${archiveFile##*.}" -if [[ "${archiveFile%%.$archiveExt}" = *.tar ]]; then +if [[ "${archiveFile%%.$archiveExt}" != *.tar ]]; then echo "The stage file you are trying to unpack (\`$archiveFile\`) does not appear to be an archived TAR file" echo "${archiveFile%%.$archiveExt}" exit 1