Refactored to use strictly POSIX-compliant syntax.
- Replaced array assignment `ARGS=("$@")` with `ARGS="$*"` for ash compatibility (e.g. Alpine)
- Removed array-specific expansions like `${ARGS[@]}`
- Preserved full functionality for Docker Compose execution
- Ensured the script passes linting tools like shfmt and shellcheck
This ensures the script runs reliably in both Alpine (ash) and Ubuntu (bash) environments.
In stack.sh line 9:
ARGS="$@"
^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
In stack.sh line 36:
"$ACTION" $ARGS
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
In stack.sh line 42:
"$ACTION" $ARGS
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.