Added DEBUG

This commit is contained in:
2025-07-31 11:51:51 -05:00
parent b000730adb
commit da267f11b0

View File

@@ -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