This commit is contained in:
Heavybullets8 2022-07-26 20:21:48 -06:00
parent f2d30a74e5
commit d262ad52f9

View File

@ -33,10 +33,7 @@ case $selection in
mount="true"
;;
4)
read -rt 600 -p "Please type the max number of backups to keep: " number_of_backups
! [[ $number_of_backups =~ ^[0-9]+$ ]] && echo -e "Error: -b needs to be assigned an interger\n\"""$number_of_backups""\" is not an interger" >&2 && exit
[[ "$number_of_backups" -le 0 ]] && echo "Error: Number of backups is required to be at least 1" && exit
echo "Generating backup, please be patient for output.."
backup="true"
;;
5)
restore="true"