Fixed problematic code with tar check

This commit is contained in:
Eric Renfro 2024-08-03 14:30:32 -04:00
parent f24aeabdd9
commit 694004ea08
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -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