Added DEBUG
This commit is contained in:
@@ -20,6 +20,11 @@ if [[ $EUID -ne 0 ]]; then
|
|||||||
exit 100
|
exit 100
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [[ $DEBUG == "true" ]]; then
|
||||||
|
echo "DEBUG is true"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set your target disk here
|
# Set your target disk here
|
||||||
udevadm trigger
|
udevadm trigger
|
||||||
|
|
||||||
@@ -47,7 +52,7 @@ mount $usb_name /mnt/ventoy
|
|||||||
cd /mnt/ventoy/Images
|
cd /mnt/ventoy/Images
|
||||||
|
|
||||||
# Decompress and write image
|
# Decompress and write image
|
||||||
if [[ $DEBUG==false ]]; then
|
if [[ $DEBUG != "true" ]]; then
|
||||||
echo "Writing image to $disk_name..."
|
echo "Writing image to $disk_name..."
|
||||||
lz4 -dc PBX-LVM.img.lz4 | dd of=$disk_name status=progress
|
lz4 -dc PBX-LVM.img.lz4 | dd of=$disk_name status=progress
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user