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
+1 -1
View File
@@ -120,7 +120,7 @@ arty docker:install # Docker Engine with user group
Scripts live in `~/bin/` and are tracked in this repo. Scripts live in `~/bin/` and are tracked in this repo.
- **`arty`** — repository orchestration, reads `arty.yml` - **`arty`** — repository orchestration, reads `arty.yml`
- **`stacks`** — Docker Compose stack manager for `~/stacks` - **`stacks`** — Docker Compose stack manager (runs in current directory, or set `STACKS_DIR`)
--- ---
+2 -2
View File
@@ -5,8 +5,8 @@ set -euo pipefail
# ─── Bootstrap ──────────────────────────────────────────────────────────────── # ─── Bootstrap ────────────────────────────────────────────────────────────────
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")" SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
# STACKS_DIR: explicit env var > current working directory > ~/stacks fallback # STACKS_DIR: explicit env var > current working directory
STACKS_DIR="${STACKS_DIR:-${HOME}/stacks}" STACKS_DIR="${STACKS_DIR:-$PWD}"
ROOT_ENV="$STACKS_DIR/.env" ROOT_ENV="$STACKS_DIR/.env"
VERSION="1.0.0" VERSION="1.0.0"