From 18851f6114357ac03e2c6f32778daecd4aa13e93 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 13 Dec 2016 12:33:30 +0100 Subject: [PATCH] Added execution path check --- dev/bootstrap.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev/bootstrap.sh b/dev/bootstrap.sh index c479bce..0b90982 100755 --- a/dev/bootstrap.sh +++ b/dev/bootstrap.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash -## dev pre-processor bootstrap rev 2016121101 +## dev pre-processor bootstrap rev 2016121301 ## Yeah !!! A really tech sounding name... In fact it's just include emulation in bash +EXEC_PATH="$(cd "$(dirname "$1")"; pwd)/$(basename "$1")" +if [ "$(basename $EXEC_PATH)" != "dev" ]; then + echo "Plrase run bootstrap.sh from osync/dev directory." + exit 1 +fi + outputFileName="$0" source "merge.sh"