ascarter / Go-bbpackage

BBEdit package for Go development
MIT License
35 stars 3 forks source link

Relative links in scripts are one level too short #10

Closed zentrope closed 7 years ago

zentrope commented 7 years ago

For scripts installed in:

~/Library/Application Support/BBEdit/Packages/Go.bbpackage/Contents/Scripts/go tool

such as goimport.sh:

PATH="$(dirname "$0")/../Resources":$PATH
(gorunner goimports -w "$BB_DOC_PATH" 2>&1) | bbr -t "goimports"

doesn't work, but:

PATH="$(dirname "$0")/../../Resources":$PATH
(gorunner goimports -w "$BB_DOC_PATH" 2>&1) | bbr -t "goimports"

does. Note the extra ../ in there.

ascarter commented 7 years ago

Thanks @zentrope. I'll test and fix it tonight.