From 80888b46b5480792103c4d821e581b2d70f08df7 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Sat, 24 Mar 2018 17:30:32 +0100 Subject: [PATCH] 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 --- site/build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/build/build.sh b/site/build/build.sh index 2d053d9..c976f62 100755 --- a/site/build/build.sh +++ b/site/build/build.sh @@ -3,7 +3,7 @@ # 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" -basedir="${0%/*}/.." +basedir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.." cd "$basedir" mode=$1