print usage when less than two arguments are provided
This commit is contained in:
parent
92e72f91d4
commit
b6568cf471
6
icp
6
icp
|
|
@ -49,6 +49,12 @@ do
|
||||||
exit $EXIT_INVALID_PATH
|
exit $EXIT_INVALID_PATH
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Check if we got any actual arguments
|
||||||
|
if [[ ${#rsync_arg[@]} -lt 2 ]];then
|
||||||
|
usage
|
||||||
|
exit $EXIT_INVALID_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
# If last argument (target) is a directory
|
# If last argument (target) is a directory
|
||||||
# add a trailing slash
|
# add a trailing slash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue