shebang MACOS compatible #6

Closed
opened 2024-05-27 08:06:21 +00:00 by Tom van der Laan · 3 comments

Hi,

the shebang would need some changes to be compatible with MACOS Homebrew version of bash.

line 1 should be changed to this to work for the mac

#!/opt/homebrew/bin/bash
# or
#!/usr/local/bin/bash
# or
#!/bin/bash

The first homebrew/bin is for Apple silicon macs. The local/bin is for Intel Macs and then the defaults comes last.

Hi, the shebang would need some changes to be compatible with MACOS Homebrew version of bash. line 1 should be changed to this to work for the mac ``` #!/opt/homebrew/bin/bash # or #!/usr/local/bin/bash # or #!/bin/bash ``` The first homebrew/bin is for Apple silicon macs. The local/bin is for Intel Macs and then the defaults comes last.
Owner

We will add:

#!/usr/bin/env bash

Please test this, since it should work as a Portable Shebang.

We will add: ``` #!/usr/bin/env bash ``` Please test this, since it should work as a Portable Shebang.
Author
Member

ahhh yes that does the trick in a much better way!

ahhh yes that does the trick in a much better way!
Owner

This has been done, thanks!

This has been done, thanks!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: octoleo/octojoom#6
No description provided.