Skip to content

fix: use portable shebangs for non-FHS compatibility#169

Open
metamorphosis-dev wants to merge 1 commit intoliuw1535:mainfrom
metamorphosis-dev:fix/portable-shebangs
Open

fix: use portable shebangs for non-FHS compatibility#169
metamorphosis-dev wants to merge 1 commit intoliuw1535:mainfrom
metamorphosis-dev:fix/portable-shebangs

Conversation

@metamorphosis-dev
Copy link

Summary

Changed #!/bin/bash to #!/usr/bin/env bash in all shell scripts.

Why

#!/bin/bash assumes bash lives at /bin/bash, which is not true on non-FHS compliant distros like NixOS. #!/usr/bin/env bash uses env to locate bash from $PATH, making the scripts portable across all Linux distros.

Files changed

  • setup.sh
  • start.sh
  • update.sh

Change #!/bin/bash to #!/usr/bin/env bash in all shell scripts.
This ensures compatibility with non-FHS compliant distros like NixOS,
where bash is not located at /bin/bash.
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.

1 participant