Commit Graph

3 Commits

Author SHA1 Message Date
Alan 025f137f28 fix: guard empty CTL_BOOTSTRAP_ARGS expansion for bash 3.2
With set -u, bash 3.2 treats empty array expansion
"\${CTL_BOOTSTRAP_ARGS[@]}" as an unbound variable.

Use ${CTL_BOOTSTRAP_ARGS[@]+"..."} pattern to skip
expansion when the array is empty.
2026-05-10 14:34:39 +08:00
Alan 630981a068 fix: use bash 3.2 compatible variable check in ctl.sh
Replace [[ -v ${key} ]] (requires bash 4.2+) with
[[ -n "${!key+x}" ]] which works on bash 3.2+ and all
POSIX-compatible shells.

macOS ships with bash 3.2, causing:
  ./ctl.sh: line 42: conditional binary operator expected
2026-05-10 14:29:07 +08:00
Michael Lam 46bdb3c1af feat: add ctl daemon lifecycle script 2026-05-05 01:12:08 +00:00