formatting
last change i swear. Ive just been trying to get things nicely formatted and working.
This commit is contained in:
parent
ea90a42c74
commit
e280bad4d2
@ -29,7 +29,7 @@ do
|
|||||||
exit;;
|
exit;;
|
||||||
b)
|
b)
|
||||||
number_of_backups=$OPTARG
|
number_of_backups=$OPTARG
|
||||||
echo "Number of backups was set to $number_of_backups"
|
echo -e "\nNumber of backups was set to $number_of_backups"
|
||||||
re='^[0-9]+$'
|
re='^[0-9]+$'
|
||||||
! [[ $number_of_backups =~ $re ]] && echo -e "Error: -b needs to be assigned an interger\n$number_of_backups is not an interger" >&2 && exit
|
! [[ $number_of_backups =~ $re ]] && echo -e "Error: -b needs to be assigned an interger\n$number_of_backups is not an interger" >&2 && exit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user