mirror of
https://github.com/PDP-10/its.git
synced 2026-04-15 00:09:07 +00:00
Ouput tgz file is in the out subdirectory.
This commit is contained in:
@@ -29,13 +29,13 @@ create_archive() {
|
||||
(cd out; tar czf $EMULATOR.tgz $EMULATOR)
|
||||
|
||||
# Verify the tarball
|
||||
if tar tzf $EMULATOR.tgz >/dev/null 2>&1; then
|
||||
if tar tzf out/$EMULATOR.tgz >/dev/null 2>&1; then
|
||||
echo "Tarball is valid and can be expanded."
|
||||
break
|
||||
else
|
||||
echo "Tarball is not valid or cannot be expanded. Retrying..."
|
||||
RETRY_COUNT=`expr "$RETRY_COUNT" + 1`
|
||||
rm -f $EMULATOR.tgz
|
||||
rm -f out/$EMULATOR.tgz
|
||||
continue
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user