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