fix regex

This commit is contained in:
Heavybullets8 2022-07-28 23:33:44 -06:00
parent 7ad86534f0
commit 048efbd4ba

View File

@ -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"