test
This commit is contained in:
parent
f2d30a74e5
commit
d262ad52f9
@ -33,10 +33,7 @@ case $selection in
|
|||||||
mount="true"
|
mount="true"
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
read -rt 600 -p "Please type the max number of backups to keep: " number_of_backups
|
backup="true"
|
||||||
! [[ $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.."
|
|
||||||
;;
|
;;
|
||||||
5)
|
5)
|
||||||
restore="true"
|
restore="true"
|
||||||
|
Loading…
Reference in New Issue
Block a user