summaryrefslogtreecommitdiff
path: root/main/misc
diff options
context:
space:
mode:
Diffstat (limited to 'main/misc')
-rwxr-xr-xmain/misc/build-native.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/misc/build-native.sh b/main/misc/build-native.sh
index 7382efc9..af7c12c8 100755
--- a/main/misc/build-native.sh
+++ b/main/misc/build-native.sh
@@ -4,7 +4,7 @@
set -e
# Generate git config if the openvpn directory is checked out from git
-if [ -d openvpn/.git ]; then
+if [ -e openvpn/.git ]; then
GIT=git
cd openvpn
CONFIGURE_GIT_CHFILES=$($GIT diff-files --name-status -r --ignore-submodules --quiet -- || echo "+")
@@ -20,6 +20,9 @@ if [ -d openvpn/.git ]; then
rm -f config-version.h.tmp
fi
cd ..
+else
+ echo "Cannot find .git directory in openvpn, aborting"
+ exit 1
fi
if [ "x$1" = "x" ]; then