diff --git a/functions/backup.sh b/functions/backup.sh index 7fa5f08f..80ab8ec2 100644 --- a/functions/backup.sh +++ b/functions/backup.sh @@ -44,7 +44,7 @@ do fi echo "$list_backups" read -rt 120 -p "Please type a number: " selection - restore_point=$(echo "$list_backups" | grep ^"$selection " | awk '{print $2}') + restore_point=$(echo "$list_backups" | grep ^"$selection)" | awk '{print $2}') #Check for valid selection. If none, kill script if [[ -z "$selection" ]]; then echo "Your selection cannot be empty"