From: ng0 Date: Mon, 25 Nov 2019 22:45:48 +0000 (+0000) Subject: test_gnunet_gns.sh.in: fix X-Git-Tag: v0.12.0~76 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=da0e889cc6006fbf5fc6415c339e7320d2ba0e0e;p=oweals%2Fgnunet.git test_gnunet_gns.sh.in: fix --- diff --git a/src/gns/test_gnunet_gns.sh.in b/src/gns/test_gnunet_gns.sh.in index 1c149b141..66bed0516 100755 --- a/src/gns/test_gnunet_gns.sh.in +++ b/src/gns/test_gnunet_gns.sh.in @@ -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