Skip to content

Commit

Permalink
CST-10 znick#336 Added check of executing run.sh with
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailyumanov committed Mar 14, 2021
1 parent 9008996 commit 04f3f7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy_local_beta/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
# This file must be used with "source deploy_local_beta/run.sh" *from bash*
# you cannot run it directly

# Execute from anytask root
if [ "${BASH_SOURCE-}" = "$0" ]; then
echo "You must source this script: \$ source $0" >&2
exit 33
fi


#TODO: check if exist:
Expand Down
9 changes: 9 additions & 0 deletions deploy_local_beta/settings.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# This file must be used with "source deploy_local_beta/settings.sh" *from bash*
# you cannot run it directly

if [ "${BASH_SOURCE-}" = "$0" ]; then
echo "You must source this script: \$ source $0" >&2
exit 33
fi


export ANYBETA_ROOT=$PWD
export ANYBETA_DEPLOY="$PWD/deploy_local_beta"

Expand Down

0 comments on commit 04f3f7c

Please sign in to comment.