fix installation script
This commit is contained in:
parent
93d15af987
commit
e4051982e2
@ -23,8 +23,16 @@ fi
|
||||
echo "Docker image built successfully"
|
||||
|
||||
# Compress the tar file using xz
|
||||
echo "Compressing the image to docker/${IMAGE_NAME}_${IMAGE_TAG}.tar.xz..."
|
||||
rm "${IMAGE_NAME}_${IMAGE_TAG}.tar.xz"
|
||||
COMPRESSED_FILE="docker/${IMAGE_NAME}_${IMAGE_TAG}.tar.xz"
|
||||
echo "Compressing the image to $COMPRESSED_FILE..."
|
||||
|
||||
# Check if the compressed file exists and remove it
|
||||
if [ -f "$COMPRESSED_FILE" ]; then
|
||||
echo "Removing existing compressed file $COMPRESSED_FILE..."
|
||||
rm "$COMPRESSED_FILE"
|
||||
fi
|
||||
|
||||
# Proceed with compression
|
||||
xz -z docker/${IMAGE_NAME}_${IMAGE_TAG}.tar
|
||||
|
||||
# Check if the compression was successful
|
||||
|
Loading…
x
Reference in New Issue
Block a user