Standard env init.
This commit is contained in:
@@ -7,13 +7,6 @@ KEEP_RESOURCES=false
|
||||
FOLLOW_LOGS=false
|
||||
TIMEOUT=120
|
||||
|
||||
# Source environment variables from load-env.sh
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
||||
if [ -f "$REPO_DIR/load-env.sh" ]; then
|
||||
source "$REPO_DIR/load-env.sh"
|
||||
fi
|
||||
|
||||
function show_help {
|
||||
echo "Usage: $0 APP_NAME [options]"
|
||||
echo ""
|
||||
@@ -85,6 +78,15 @@ if [[ -z "$APP_NAME" ]]; then
|
||||
show_help
|
||||
fi
|
||||
|
||||
# Initialize Wild-Cloud environment
|
||||
if [ -z "${WC_ROOT}" ]; then
|
||||
print "WC_ROOT is not set."
|
||||
exit 1
|
||||
else
|
||||
source "${WC_ROOT}/scripts/common.sh"
|
||||
init_wild_env
|
||||
fi
|
||||
|
||||
# Check if doctor directory exists
|
||||
DOCTOR_DIR="$REPO_DIR/apps/$APP_NAME/doctor"
|
||||
if [[ ! -d "$DOCTOR_DIR" ]]; then
|
||||
|
Reference in New Issue
Block a user