From 22f306c6f3908f305ca351e45ce34f6fcef08550 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Fri, 11 Nov 2016 14:52:25 -0600 Subject: [PATCH] Fix formatting of menu Fixes #9. --- bin/snap-sync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/snap-sync b/bin/snap-sync index 8e9e8af..2b24080 100755 --- a/bin/snap-sync +++ b/bin/snap-sync @@ -100,9 +100,9 @@ if [[ "$disk" == -1 ]]; then printf "Select a mounted BTRFS device to backup to.\n" while [[ $disk -lt 0 || $disk -gt $i ]]; do for x in "${!TARGETS_ARRAY[@]}"; do - printf "%s) %s (%s)\n" "$((x+1))" "${UUIDS_ARRAY[$x]}" "${TARGETS_ARRAY[$x]}" + printf "%4s) %s (%s)\n" "$((x+1))" "${UUIDS_ARRAY[$x]}" "${TARGETS_ARRAY[$x]}" done - printf "0) Exit\n" + printf "%4s) Exit\n" "0" read -r -p "Enter a number: " disk done if [[ $disk == 0 ]]; then