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

no-create option preflight check

parent 3e9b7105
Branches
Tags
No related merge requests found
......@@ -27,6 +27,7 @@ bzr=false
project_name=""
mirror=""
force=false
no_create_set=false
#
# ARGUMENT HANDLING
......@@ -120,6 +121,7 @@ while true; do
shift 2
;;
-n|--no-create)
no_create_set=true
no_create="${2}"
shift 2
;;
......@@ -184,6 +186,12 @@ function preflight() {
red_echo " option." 1>&2
STATUS=1
fi
#test no_create option
if ${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
fi
#test authors_file path for existence
if [ ! -z "${authors_file}" -a ! -f "${authors_file}" ];then
red_echo -n "Specified "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment