Fix formatting of menu

Fixes #9.
This commit is contained in:
James Barnett
2016-11-11 14:52:25 -06:00
parent f1ad83a8b6
commit 22f306c6f3

View File

@@ -100,9 +100,9 @@ if [[ "$disk" == -1 ]]; then
printf "Select a mounted BTRFS device to backup to.\n" printf "Select a mounted BTRFS device to backup to.\n"
while [[ $disk -lt 0 || $disk -gt $i ]]; do while [[ $disk -lt 0 || $disk -gt $i ]]; do
for x in "${!TARGETS_ARRAY[@]}"; 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 done
printf "0) Exit\n" printf "%4s) Exit\n" "0"
read -r -p "Enter a number: " disk read -r -p "Enter a number: " disk
done done
if [[ $disk == 0 ]]; then if [[ $disk == 0 ]]; then