Don't hardcode the source directory in deploy.sh
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 5 May 2015 13:01:40 +0000 (15:01 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Wed, 6 May 2015 14:56:50 +0000 (16:56 +0200)
shell_integration/MacOSX/deploy.sh

index 2cb2ca5790f1075d9653fcb3ef22ac3da4b4eb89..fde7d3406a60f08a6114eb0713d49a8d939671c8 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/sh
-# osascript $HOME/owncloud.com/client/shell_integration/MacOSX/unload.scpt
+SELFPATH=`dirname $0`
+# osascript $SELFPATH/unload.scpt
 
 sudo rm -rf /Library/ScriptingAdditions/SyncStateFinder.osax
 # Klaas' machine
@@ -12,6 +13,6 @@ OSAXDIR=$HOME/Library/Developer/Xcode/DerivedData/OwnCloud-*/Build/Products/Debu
 
 sudo killall Finder
 sleep 1
-osascript $HOME/owncloud.com/client/shell_integration/MacOSX/load.scpt
-osascript $HOME/owncloud.com/client/shell_integration/MacOSX/check.scpt
+osascript $SELFPATH/load.scpt
+osascript $SELFPATH/check.scpt