Skip to content

Conversation

@ipepe
Copy link

@ipepe ipepe commented Jun 19, 2025

The script/setup file has been updated to be POSIX-compliant, allowing it to be run with sh.

Changes include:

  • Shebang changed to /usr/bin/env sh.
  • Removed bash-specific 'set -o pipefail'.
  • Replaced bash-specific '[[' conditional with POSIX '['.
  • Used 'read -r' in the indent function to correctly handle backslashes.
  • Replaced the bash-specific OSTYPE variable with 'uname' and a case statement for improved POSIX compatibility in the check_postgres function.

Shellcheck was used to verify POSIX compliance.

The script/setup file has been updated to be POSIX-compliant, allowing it to be run with sh.

Changes include:
- Shebang changed to /usr/bin/env sh.
- Removed bash-specific 'set -o pipefail'.
- Replaced bash-specific '[[' conditional with POSIX '['.
- Used 'read -r' in the indent function to correctly handle backslashes.
- Replaced the bash-specific OSTYPE variable with 'uname' and a case statement for improved POSIX compatibility in the check_postgres function.

Shellcheck was used to verify POSIX compliance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants