Added execution path check

This commit is contained in:
deajan 2016-12-13 12:33:30 +01:00
parent 28dbd94ce0
commit 18851f6114
1 changed files with 7 additions and 1 deletions

View File

@ -1,8 +1,14 @@
#!/usr/bin/env bash #!/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 ## 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" outputFileName="$0"
source "merge.sh" source "merge.sh"