Skip to content
Snippets Groups Projects
Commit ae41bb09 authored by Sam Gleske's avatar Sam Gleske
Browse files

Added minimum argument checking to add_mirror.sh

parent d1745c5d
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
#USAGE #USAGE
# ./add_mirror.sh project_name http://example.com/project.git # ./add_mirror.sh project_name http://example.com/project.git
if [ "${#}" -lt "2" ];then
echo "Not enough arguments." 1>&2
echo "e.g. ./add_mirror.sh project_name http://example.com/project.git" 1>&2
exit 1
fi
#Include all user options #Include all user options
. "$(dirname $0)/config.sh" . "$(dirname $0)/config.sh"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment