fixed format of OSX script

This commit is contained in:
Joey Hess 2014-04-23 13:44:51 -04:00
parent 24abc27f18
commit 421ff7bf0d
Failed to extract signature

View file

@ -91,12 +91,12 @@ For OS X, it is possible to get context menus in Finder. Due to how OS X deals w
3. Add a "Run shell script" element and fill in line with the following script: 3. Add a "Run shell script" element and fill in line with the following script:
#!/usr/bin/bash #!/usr/bin/bash
source ~/.bash_profile source ~/.bash_profile
for f in "$@" for f in "$@"
do do
cd $(dirname $f); git-annex get $f cd $(dirname $f); git-annex get $f
done done
The purpose of the first line is there to get git-annex on to the path. The reason for the for loop is in case multiple files or folders are marked when running the context menu command. The purpose of the first line is there to get git-annex on to the path. The reason for the for loop is in case multiple files or folders are marked when running the context menu command.