chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
53aa2ef
)
https://github.com/daid/Cura/issues/37 package.sh does not run correctly when current...
author
Lawrence Johnston
<Lawrence.B.Johnston@gmail.com>
Sat, 7 Apr 2012 20:28:43 +0000
(13:28 -0700)
committer
Lawrence Johnston
<Lawrence.B.Johnston@gmail.com>
Sat, 7 Apr 2012 20:28:43 +0000
(13:28 -0700)
package.sh
patch
|
blob
|
history
diff --git
a/package.sh
b/package.sh
index 2a9038ae32bde48278c5812a84d67d165b85f8ca..d059f665f73efb0709142495564e429e15c0347e 100755
(executable)
--- 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