Change build.sh basedir

Use different method to get the basedir in site/build/build.sh allowing
the script to work on Windows as well.

Take from:
https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
lektura
Eric Cornelissen 2018-03-24 17:30:32 +01:00
parent 9e3676d852
commit 80888b46b5
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# Put all available languages here, except "en". Separated by spaces # Put all available languages here, except "en". Separated by spaces
TRANSLATIONS="ca da de el eo es fr hu it nb nl pt sv tr zh_tw" TRANSLATIONS="ca da de el eo es fr hu it nb nl pt sv tr zh_tw"
basedir="${0%/*}/.." basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
cd "$basedir" cd "$basedir"
mode=$1 mode=$1