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

no_create_set added to add_mirror

parent 2da3da7b
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ bzr=false
project_name=""
mirror=""
force=false
no_create_set=false
no_create_set="${no_create_set:-false}"
#
# ARGUMENT HANDLING
......@@ -186,8 +186,17 @@ function preflight() {
red_echo " option." 1>&2
STATUS=1
fi
#test no_create option
if ${no_create_set} && [ -z "${no_create}" ];then
#test no_create_set environment variable (must be bool)
if [ ! "${no_create_set}" = "true" ] && [ ! "${no_create_set}" = "false" ];then
red_echo -n "no_create_set="
yellow_echo -n "${no_create_set}"
red_echo -n " is not a valid option for no_create_set! Must be "
yellow_echo -n "true"
red_echo -n " or "
yellow_echo -n "false"
red_echo "." 1>&2
STATUS=1
elif ${no_create_set} && [ -z "${no_create}" ];then
yellow_echo -n "--no-create" 1>&2
red_echo " option must have a git remote to push." 1>&2
STATUS=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment