mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-12-22 08:41:06 -05:00
Fixed problematic code with tar check
This commit is contained in:
parent
f24aeabdd9
commit
694004ea08
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue