Commit graph

3 commits

Author SHA1 Message Date
Digikwal
acea6f0edf
fix: make script POSIX-compliant for broader shell compatibility
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.
2025-06-24 19:04:28 +02:00
Digikwal
5275cb8695
chore(stack): fix shellcheck warnings for safe argument handling
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.
2025-06-24 18:48:32 +02:00
digikwal
cf37a7f757
chore: update instructions 2025-06-24 17:09:57 +02:00