mirror of
https://github.com/hsoft/collapseos.git
synced 2025-04-04 13:38:39 +11:00
Wrap zasm.sh shebang in /usr/bin/env ; remove comment about BSDs
This commit is contained in:
parent
f0502a7a99
commit
5616e9a751
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# readlink -f doesn't work with macOS's implementation (BSD in general?)
|
||||
# readlink -f doesn't work with macOS's implementation
|
||||
# so, if we can't get readlink -f to work, try python with a realpath implementation
|
||||
ABS_PATH=$(readlink -f "$0" || python -c "import sys, os; print(os.path.realpath('$0'))")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user