fix: update STACKS_DIR to use script directory as fallback

This commit is contained in:
lingkai5wu committed 2026-10-12 12:48:41 +08:00
1 parent 505f2d3887
commit f4e9f78837
1 file changed
+2 -1
+2 -1
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
STACKS_DIR="/srv/stacks"
SCRIPT_DIR="$(dirname -- "$(readlink -f -- "${BASH_SOURCE[0]}")")"
STACKS_DIR="${STACKS_DIR:-$SCRIPT_DIR}"
docker_args=(--rm -v "$STACKS_DIR:/app")
dclint_args=(. -r)