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:
2026-06-22 18:11:58 +02:00
co-authored by Claude Sonnet 4.6
parent 44655ccbd9
commit 3ef96ff8ab
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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"