Skip to content

Commit

Permalink
CST-10 znick#336 Fixed help message request bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailyumanov committed Mar 12, 2021
1 parent b14b894 commit e2fe199
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deploy_local_beta/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
############

ANYBETA_correct_args=1
ANYBETA_help_requested=0

while (( "$#" )); do
ANYBETA_PARAM=`echo $1 | awk -F= '{ print $1 }'`
Expand All @@ -34,7 +35,8 @@ while (( "$#" )); do

-h|--help)
ANYBETA_usage
shift
ANYBETA_help_requested=1
shift "$#"
;;

*)
Expand All @@ -45,7 +47,10 @@ while (( "$#" )); do
esac
done

if test $ANYBETA_correct_args = 1
if test $ANYBETA_help_requested = 0
then
. $ANYBETA_DEPLOY/deploy_local_beta.sh "$@"
if test $ANYBETA_correct_args = 1
then
. $ANYBETA_DEPLOY/deploy_local_beta.sh "$@"
fi
fi
1 change: 1 addition & 0 deletions deploy_local_beta/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function ANYBETA_cleanup() {
unset ANYBETA_ERROR_PREFIX
unset ANYBETA_SAVE_VENV
unset ANYBETA_correct_args
unset ANYBETA_help_requested

unset ANYBETA_report
unset ANYBETA_error
Expand Down

0 comments on commit e2fe199

Please sign in to comment.