diff --git a/functions/backup.sh b/functions/backup.sh index 916291ff..2dd2c960 100644 --- a/functions/backup.sh +++ b/functions/backup.sh @@ -34,16 +34,15 @@ while true do clear -x && echo "pulling all restore points.." list_backups=$(cli -c 'app kubernetes list_backups' | sort -t '_' -Vr -k2,7 | tr -d " \t\r" | awk -F '|' '{print $2}' | nl -s ") " | column -t) - clear -x if [[ -z "$list_backups" ]]; then echo "No restore points available" exit - else - title - echo -e "Choose a Restore Point to Delete\nThese may be out of order if they are not HeavyScript backups" fi while true do + clear -x + title + echo -e "Choose a Restore Point to Delete\nThese may be out of order if they are not HeavyScript backups" echo "$list_backups" echo echo "0) Exit"