summaryrefslogtreecommitdiff
path: root/scripts/get-and-build-libndpi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/get-and-build-libndpi.sh')
-rwxr-xr-xscripts/get-and-build-libndpi.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/get-and-build-libndpi.sh b/scripts/get-and-build-libndpi.sh
index df0ab2b2c..945dcf7b3 100755
--- a/scripts/get-and-build-libndpi.sh
+++ b/scripts/get-and-build-libndpi.sh
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
set -e
-set -x
LOCKFILE="$(realpath "${0}").lock"
touch "${LOCKFILE}"
@@ -11,8 +10,12 @@ flock -x -n 42 || {
exit 1;
}
+set -x
+
cd "$(dirname "${0}")/.."
-git submodule update --init ./libnDPI
+if [ -d ./.git ]; then
+ git submodule update --init ./libnDPI
+fi
cd ./libnDPI
DEST_INSTALL="${DEST_INSTALL:-$(realpath ./install)}"