diff options
| author | Jesse Vincent <jesse@primeradiant.com> | 2026-09-26 15:53:11 -0700 |
|---|---|---|
| committer | Jesse Vincent <jesse@primeradiant.com> | 2026-09-26 15:53:11 -0700 |
| commit | 4b3c5da76190a420a17b922d5b4e6da93695d495 (patch) | |
| tree | 04b70229ed4c2c0be7fade336304bc8185f84f97 | |
| parent | c5df6bdd516371758ad8c7a8852c58def054c276 (diff) | |
sdd-workspace: quote the empty CDPATH so shellcheck passes (SC1007)fix/sdd-workspace-keep-gitignore
| -rwxr-xr-x | skills/subagent-driven-development/scripts/sdd-workspace | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skills/subagent-driven-development/scripts/sdd-workspace b/skills/subagent-driven-development/scripts/sdd-workspace index f5d1328..a70630e 100755 --- a/skills/subagent-driven-development/scripts/sdd-workspace +++ b/skills/subagent-driven-development/scripts/sdd-workspace @@ -48,7 +48,7 @@ base="$root/.superpowers/sdd" # Normalize the plan path (physical directory, so relative/absolute/../ # spellings of one plan compare equal) and express it as the marker value: # repo-relative when the plan lives under the repo root, absolute otherwise. -plan_dir=$(CDPATH= cd -- "$(dirname "$plan")" && pwd -P) +plan_dir=$(CDPATH='' cd -- "$(dirname "$plan")" && pwd -P) plan_abs="$plan_dir/$(basename "$plan")" case "$plan_abs" in "$root"/*) plan_id=${plan_abs#"$root"/} ;; @@ -81,4 +81,4 @@ fi # Create-only: a repo may commit its own .gitignore here (e.g. to version # progress.md ledgers); overwriting it would revert that on every run. [ -e "$base/.gitignore" ] || printf '*\n' > "$base/.gitignore" -CDPATH= cd -- "$dir" && pwd +CDPATH='' cd -- "$dir" && pwd |
