fix regex
This commit is contained in:
		| @@ -44,7 +44,7 @@ do | |||||||
|     fi |     fi | ||||||
|     echo "$list_backups" |     echo "$list_backups" | ||||||
|     read -rt 120 -p "Please type a number: " selection |     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 |     #Check for valid selection. If none, kill script | ||||||
|     if [[ -z "$selection" ]]; then  |     if [[ -z "$selection" ]]; then  | ||||||
|         echo "Your selection cannot be empty" |         echo "Your selection cannot be empty" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user