From a521198a11cfec69dd59cb9ab087519eeac8dc2e Mon Sep 17 00:00:00 2001 From: Sam Gleske <sag47@drexel.edu> Date: Fri, 8 Nov 2013 19:59:30 -0500 Subject: [PATCH] Spelling correction and preflight check update --- add_mirror.sh | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/add_mirror.sh b/add_mirror.sh index c0a688a..02e33eb 100755 --- a/add_mirror.sh +++ b/add_mirror.sh @@ -64,7 +64,7 @@ DESCRIPTION: --svn Mirror a SVN repository (must be explicitly set) - --bzr Mirror a Bazar repository (must be explicitly set) + --bzr Mirror a Bazaar repository (must be explicitly set) EOF } @@ -134,7 +134,29 @@ function preflight() { yellow_echo -n "--svn" 1>&2 red_echo -n " and " 1>&2 yellow_echo -n "--git" 1>&2 - red_echo " options. Choose one or other." 1>&2 + red_echo -n " options. Choose one or other or " 1>&2 + yellow_echo -n "--bzr" 1>&2 + red_echo "." 1>&2 + STATUS=1 + fi + if ${git} && ${bzr};then + red_echo -n "Must not set " 1>&2 + yellow_echo -n "--bzr" 1>&2 + red_echo -n " and " 1>&2 + yellow_echo -n "--git" 1>&2 + red_echo -n " options. Choose one or other or " 1>&2 + yellow_echo -n "--svn" 1>&2 + red_echo "." 1>&2 + STATUS=1 + fi + if ${svn} && ${bzr};then + red_echo -n "Must not set " 1>&2 + yellow_echo -n "--bzr" 1>&2 + red_echo -n " and " 1>&2 + yellow_echo -n "--svn" 1>&2 + red_echo -n " options. Choose one or other or " 1>&2 + yellow_echo -n "--git" 1>&2 + red_echo "." 1>&2 STATUS=1 fi if ! ${git} && ! ${svn} && ! ${bzr};then -- GitLab