Showing help if no parameter is given
This commit is contained in:
parent
3cf5414dc0
commit
2ed4a037ff
@ -71,6 +71,9 @@ GetOptions() {
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ $dest == "" ]] || [[ $source == "" ]]; then
|
||||
help=true
|
||||
fi
|
||||
}
|
||||
|
||||
Usage() {
|
||||
@ -148,7 +151,7 @@ CleanUp() {
|
||||
}
|
||||
|
||||
GetOptions $@
|
||||
if [[ "$help" == true ]]; then
|
||||
if [[ $help == true ]]; then
|
||||
Usage
|
||||
exit
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user