From 6137f1ed4d40f9b936df8456828c7e5c0cf0fae1 Mon Sep 17 00:00:00 2001 From: mwwalters Date: Sun, 2 Aug 2026 20:29:05 -0400 Subject: [PATCH] bug: line 25 fixed variable reference syntax for SCRIPT_DIR --- .gitattributes | 2 ++ npm-maintenance/npm-maintenance.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..efdba87 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* text=auto +*.sh text eol=lf diff --git a/npm-maintenance/npm-maintenance.sh b/npm-maintenance/npm-maintenance.sh index 9a258b9..e723ab4 100755 --- a/npm-maintenance/npm-maintenance.sh +++ b/npm-maintenance/npm-maintenance.sh @@ -22,7 +22,7 @@ TRIGGERED_BY="$(whoami)" # ── Secrets ──────────────────────────────────────────────── # Set your credentials in the .secrets file, an example file is provided with this project -SECRETS_FILE="$(SCRIPT_DIR)/.secrets" +SECRETS_FILE="${SCRIPT_DIR}/.secrets" if [ ! -f "$SECRETS_FILE" ]; then echo "[ERROR] Secrets file not found: $SECRETS_FILE" >&2