diff --git a/Ventoy/CloneToDisk.sh b/Ventoy/CloneToDisk.sh index 78ac993..4f7255a 100755 --- a/Ventoy/CloneToDisk.sh +++ b/Ventoy/CloneToDisk.sh @@ -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