Bug fix
This commit is contained in:
@@ -3,8 +3,12 @@
|
|||||||
# Usage: ./scripts/podx-tools.sh <command> [args...]
|
# Usage: ./scripts/podx-tools.sh <command> [args...]
|
||||||
# Run without args to see help.
|
# Run without args to see help.
|
||||||
|
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Determine repo root early (used by temp dir and .env loader)
|
||||||
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
|
|
||||||
# Writable temp dir (override with PODX_TMP or TMPDIR); default to repo tmp/
|
# Writable temp dir (override with PODX_TMP or TMPDIR); default to repo tmp/
|
||||||
: "${PODX_TMP:=${TMPDIR:-$ROOT_DIR/tmp}}"
|
: "${PODX_TMP:=${TMPDIR:-$ROOT_DIR/tmp}}"
|
||||||
mkdir -p "$PODX_TMP"
|
mkdir -p "$PODX_TMP"
|
||||||
@@ -29,7 +33,6 @@ ppjson() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# ---------- Load .env from repo root (robust, handles spaces & ${VAR}) ----------
|
# ---------- Load .env from repo root (robust, handles spaces & ${VAR}) ----------
|
||||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
||||||
ENV_FILE="$ROOT_DIR/.env"
|
ENV_FILE="$ROOT_DIR/.env"
|
||||||
if [ -f "$ENV_FILE" ]; then
|
if [ -f "$ENV_FILE" ]; then
|
||||||
# Minimal .env parser:
|
# Minimal .env parser:
|
||||||
|
Reference in New Issue
Block a user