test_gnunet_gns.sh.in: fix
authorng0 <ng0@n0.is>
Mon, 25 Nov 2019 22:45:48 +0000 (22:45 +0000)
committerng0 <ng0@n0.is>
Mon, 25 Nov 2019 22:45:48 +0000 (22:45 +0000)
src/gns/test_gnunet_gns.sh.in

index 1c149b1416efadea30f36a4da77c1686251531ce..66bed051640dfdd40dfe1bf34bad42b7839fe1d9 100755 (executable)
@@ -6,7 +6,14 @@
 # if test -z "`which fooble`"; then echo 1; fi
 # The command builtin might not work with busybox's ash
 # but this works for now.
-. @pkgdatadir@/existence.sh
+dir=$(dirname "$0")
+
+if test -e @pkgdatadir@/existence.sh
+then
+    . @pkgdatadir@/existence.sh
+else
+    . $dir/../../contrib/build-common/sh/lib.sh/existence.sh
+fi
 
 LOCATION=`existence gnunet-config`
 if test -z $LOCATION; then