From da267f11b0ec89565cb0697c13394e2055bdf825 Mon Sep 17 00:00:00 2001 From: poslop Date: Thu, 31 Jul 2025 11:51:51 -0500 Subject: [PATCH] Added DEBUG --- Ventoy/CloneToDisk.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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