fix: stacks STACKS_DIR defaults to PWD instead of ~/stacks
Makes stacks work like arty — discovers stacks in the current directory. Explicit STACKS_DIR env var still takes precedence. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -5,8 +5,8 @@ set -euo pipefail
|
||||
# ─── Bootstrap ────────────────────────────────────────────────────────────────
|
||||
|
||||
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
|
||||
# STACKS_DIR: explicit env var > current working directory > ~/stacks fallback
|
||||
STACKS_DIR="${STACKS_DIR:-${HOME}/stacks}"
|
||||
# STACKS_DIR: explicit env var > current working directory
|
||||
STACKS_DIR="${STACKS_DIR:-$PWD}"
|
||||
ROOT_ENV="$STACKS_DIR/.env"
|
||||
VERSION="1.0.0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user