escape?
This commit is contained in:
parent
4e15a6ba3e
commit
20551b4df9
@ -132,7 +132,7 @@ case $selection in
|
|||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
printf '%s\0' "${update_selection[@]}" | grep -Fxq '-b' && echo -e "$OPTARG is already on here, skipping" && sleep 5 && continue #If option is already on there, skip it
|
printf '%s\0' "${update_selection[@]}" | grep -Fxqz "\-b" && echo -e "$OPTARG is already on here, skipping" && sleep 5 && continue #If option is already on there, skip it
|
||||||
echo "Up to how many backups should we keep?"
|
echo "Up to how many backups should we keep?"
|
||||||
read -rt 600 -p "Please type an integer: " up_backups
|
read -rt 600 -p "Please type an integer: " up_backups
|
||||||
! [[ $up_backups =~ ^[0-9]+$ ]] && echo -e "Error: \"$up_backups\" is invalid, it needs to be an integer\nNOT adding it to the list" && sleep 5 && continue
|
! [[ $up_backups =~ ^[0-9]+$ ]] && echo -e "Error: \"$up_backups\" is invalid, it needs to be an integer\nNOT adding it to the list" && sleep 5 && continue
|
||||||
|
Loading…
Reference in New Issue
Block a user