Kaynağa Gözat

test_gnunet_gns.sh.in: fix

ng0 4 yıl önce
ebeveyn
işleme
da0e889cc6
1 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. 8 1
      src/gns/test_gnunet_gns.sh.in

+ 8 - 1
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