Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make preload.sh POSIX-compliant #248

Closed
wants to merge 2 commits into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Nov 15, 2024

I've made preload.sh fully POSIX-compliant, meaning it can now run on any POSIX-compatible shell, not just bash.

I've made `preload.sh` fully POSIX-compliant, meaning it can now run on any POSIX-compatible shell, not just `bash`.
@thestinger
Copy link
Member

Please leave out the automatic building part.

@ghost
Copy link
Author

ghost commented Nov 16, 2024

Done.

@thestinger
Copy link
Member

This changes the behavior of the script and will break using it as an installed script. It relies on using a relative path from the script's own path. Not sure how to deal with that.

@thestinger thestinger force-pushed the main branch 5 times, most recently from 51a59c3 to c97263e Compare December 16, 2024 03:18
@@ -1,6 +1,7 @@
#!/bin/bash
#!/bin/sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be better to use #!/usr/bin/env sh ?

@ghost ghost closed this by deleting the head repository Jan 17, 2025
This pull request was closed.
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