git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
11e551d
)
Fix script path detection on macOS
author
CryptoManiac
<balthazar.ad@gmail.com>
Thu, 30 Dec 2021 05:37:50 +0000 (08:37 +0300)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Thu, 30 Dec 2021 05:37:50 +0000 (08:37 +0300)
share/genbuild.sh
patch
|
blob
|
history
diff --git
a/share/genbuild.sh
b/share/genbuild.sh
index
0dff4ba
..
7eee927
100755
(executable)
--- a/
share/genbuild.sh
+++ b/
share/genbuild.sh
@@
-1,7
+1,11
@@
#!/bin/sh
+realpath() {
+ [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
+}
+
PREVDIR=$(pwd)
-SCRIPT=$(readlink -f $0)
+SCRIPT=$(realpath $0)
SCRIPTPATH=`dirname $SCRIPT`
if [ $# -gt 0 ]; then