From da0e889cc6006fbf5fc6415c339e7320d2ba0e0e Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 25 Nov 2019 22:45:48 +0000 Subject: [PATCH] test_gnunet_gns.sh.in: fix --- src/gns/test_gnunet_gns.sh.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.25.1