Standard env init.
This commit is contained in:
@@ -45,15 +45,13 @@ if [ -z "${APP_NAME}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d ".wildcloud" ]; then
|
||||
echo "Error: .wildcloud directory not found in current directory"
|
||||
echo "This script must be run from a directory that contains a .wildcloud directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f ".wildcloud/config.yaml" ]; then
|
||||
echo "Error: .wildcloud/config.yaml not found"
|
||||
# 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
|
||||
|
||||
CACHE_APP_DIR=".wildcloud/cache/apps/${APP_NAME}"
|
||||
|
Reference in New Issue
Block a user