mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 17:40:37 +08:00
https://github.com/daid/Cura/issues/37 package.sh does not run correctly when current directory is not script directory
This commit is contained in:
parent
53aa2efd71
commit
a055b03422
@ -40,6 +40,11 @@ function checkTool
|
|||||||
# Actual build script
|
# 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 git "git: http://git-scm.com/"
|
||||||
checkTool curl "curl: http://curl.haxx.se/"
|
checkTool curl "curl: http://curl.haxx.se/"
|
||||||
if [ $BUILD_TARGET = "win32" ]; then
|
if [ $BUILD_TARGET = "win32" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user