fix build script

This commit is contained in:
Torben Haack 2024-10-10 07:52:30 +02:00
parent 3a4f68147d
commit ec807a0a0a

View File

@ -33,19 +33,7 @@ if [ $? -eq 0 ]; then
# Check if the compression was successful
if [ $? -eq 0 ]; then
mv $PWD/docker/myp-rp_latest.tar.xz $PWD/docker/${OUTPUT_FILE}
echo "Image successfully compressed to ${OUTPUT_FILE}"
# Remove the original .tar file
echo "Cleaning up the original .tar file..."
rm $PWD/docker/myp-rp_latest.tar
if [ $? -eq 0 ]; then
echo ".tar file removed successfully"
else
echo "Error occurred while removing the .tar file"
exit 1
fi
else
echo "Error occurred while compressing the image"
exit 1