aboutsummaryrefslogtreecommitdiff
path: root/custom/lib/disk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'custom/lib/disk.sh')
-rw-r--r--custom/lib/disk.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/custom/lib/disk.sh b/custom/lib/disk.sh
index ea8c402..fa3dbd2 100644
--- a/custom/lib/disk.sh
+++ b/custom/lib/disk.sh
@@ -148,7 +148,9 @@ select_disks() {
read -rp "Enter disk path(s) separated by space: " selected
fi
- [[ -z "$selected" ]] && error "No disk selected"
+ if [[ -z "$selected" ]]; then
+ error "No disk selected"
+ fi
# Extract just the device paths (remove size/model info)
SELECTED_DISKS=()