From a055b03422e972b285d65eeaf02cd9a6f3fe8084 Mon Sep 17 00:00:00 2001 From: Lawrence Johnston Date: Sat, 7 Apr 2012 13:28:43 -0700 Subject: [PATCH] https://github.com/daid/Cura/issues/37 package.sh does not run correctly when current directory is not script directory --- package.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.sh b/package.sh index 2a9038ae..d059f665 100755 --- a/package.sh +++ b/package.sh @@ -40,6 +40,11 @@ function checkTool # Actual build script ############################# +# Change working directory to the directory the script is in +# http://stackoverflow.com/a/246128 +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $SCRIPT_DIR + checkTool git "git: http://git-scm.com/" checkTool curl "curl: http://curl.haxx.se/" if [ $BUILD_TARGET = "win32" ]; then -- 2.30.2