david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0

changes to v03

This commit is contained in:
david 2013-03-15 13:36:40 +01:00
parent e4d95f75f0
commit 2654f4215b
1 changed files with 8 additions and 0 deletions

View File

@ -73,13 +73,21 @@ version()
trap bashtrap INT
# **** option handler ****
if [ -z $1 ]; then
echo "no options given. aborting mission."
usage
exit 1
fi
for option in $options; do
case "$option" in
-h|--help)
usage
exit 0
;;
-v|--version)
version
exit 0
;;
-c|--config)
config=1