This commit is contained in:
Heavybullets8 2022-07-26 20:23:52 -06:00
parent d262ad52f9
commit 890677c72f
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ case $selection in
mount="true"
;;
4)
read -rt 600 -p "What is the maximun number of backups you would like?: " number_of_backups
backup="true"
;;
5)

View File

@ -56,10 +56,10 @@ do
exit
;;
b)
backup="true"
number_of_backups=$OPTARG
! [[ $OPTARG =~ ^[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
backup="true"
;;
r)
rollback="true"