Better folder detection

This commit is contained in:
deajan 2016-12-13 19:28:47 +01:00
parent b16422fc08
commit 3e9e560cfd
1 changed files with 2 additions and 3 deletions

View File

@ -1,10 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## dev pre-processor bootstrap rev 2016121301 ## dev pre-processor bootstrap rev 2016121302
## 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 [ ! -f "./merge.sh" ]; then
if [ "$(basename $EXEC_PATH)" != "dev" ]; then
echo "Plrase run bootstrap.sh from osync/dev directory." echo "Plrase run bootstrap.sh from osync/dev directory."
exit 1 exit 1
fi fi