~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f9f42
)
run-docker.sh: Work around mac readlink
author
Fredrik Fornwall
<fredrik@fornwall.net>
Sat, 15 Jul 2017 09:37:17 +0000
(11:37 +0200)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Sat, 15 Jul 2017 09:37:17 +0000
(11:37 +0200)
scripts/run-docker.sh
patch
|
blob
|
blame
|
history
diff --git
a/scripts/run-docker.sh
b/scripts/run-docker.sh
index
e0400e1
..
4bbc003
100755
(executable)
--- a/
scripts/run-docker.sh
+++ b/
scripts/run-docker.sh
@@
-2,7
+2,12
@@
set -e -u
HOME=/home/builder
-REPOROOT="$(dirname $(readlink -f $0))/../"
+if [ `uname` = Darwin ]; then
+ # Workaround for mac readlink not supporting -f.
+ REPOROOT=$PWD
+else
+ REPOROOT="$(dirname $(readlink -f $0))/../"
+fi
IMAGE_NAME=termux/package-builder
CONTAINER_NAME=termux-package-builder