test
This commit is contained in:
parent
d262ad52f9
commit
890677c72f
@ -33,6 +33,7 @@ case $selection in
|
|||||||
mount="true"
|
mount="true"
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
|
read -rt 600 -p "What is the maximun number of backups you would like?: " number_of_backups
|
||||||
backup="true"
|
backup="true"
|
||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
|
@ -56,10 +56,10 @@ do
|
|||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
b)
|
b)
|
||||||
backup="true"
|
|
||||||
number_of_backups=$OPTARG
|
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
|
! [[ $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
|
[[ "$number_of_backups" -le 0 ]] && echo "Error: Number of backups is required to be at least 1" && exit
|
||||||
|
backup="true"
|
||||||
;;
|
;;
|
||||||
r)
|
r)
|
||||||
rollback="true"
|
rollback="true"
|
||||||
|
Loading…
Reference in New Issue
Block a user