projects
/
xonotic
/
xonotic.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Detect calling "all" via e.g. ../../all and chdir where it SHOULD be
[xonotic/xonotic.git]
/
all
diff --git
a/all
b/all
index 8b6aa4d8823ebc54d1c5e020dc8a738c3de724f7..6011b54e52ee9f13782f10816c98b2c36088ff08 100755
(executable)
--- a/
all
+++ b/
all
@@
-51,6
+51,12
@@
fi
cmd=$1
shift
+case "$0" in
+ */*)
+ cd "${0%/*}"
+ ;;
+esac
+
d0=`pwd`
case "$cmd" in
update|pull)