fix build script
This commit is contained in:
parent
3a4f68147d
commit
ec807a0a0a
@ -33,19 +33,7 @@ if [ $? -eq 0 ]; then
|
|||||||
|
|
||||||
# Check if the compression was successful
|
# Check if the compression was successful
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
mv $PWD/docker/myp-rp_latest.tar.xz $PWD/docker/${OUTPUT_FILE}
|
|
||||||
echo "Image successfully compressed to ${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
|
else
|
||||||
echo "Error occurred while compressing the image"
|
echo "Error occurred while compressing the image"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user