commit | 3c53389adc06df8af7eeade0b684b71af67ab3b0 | [log] [tgz] |
---|---|---|
author | Jakob Andersen <jakobr@google.com> | Mon Mar 20 21:28:47 2017 +0100 |
committer | GitHub <noreply@github.com> | Mon Mar 20 21:28:47 2017 +0100 |
tree | fa01c392e52cc4e4ad18a628df53ac71be3444e6 | |
parent | d5b317118fe28ea2286cb1365d65a172f794daa2 [diff] | |
parent | b1b554f73a930c59f4b4b2c686001ee1e44e0942 [diff] |
Merge pull request #69 from mehaase/patch-1 Allow bash script to execute from any directory
diff --git a/bin/protoc-gen-dart b/bin/protoc-gen-dart index 7b398d0..63570e8 100755 --- a/bin/protoc-gen-dart +++ b/bin/protoc-gen-dart
@@ -1,2 +1,3 @@ #!/bin/bash -dart bin/protoc_plugin.dart -c "$@" +BINDIR=$(dirname "$(readlink -f "$0")") +dart "$BINDIR/protoc_plugin.dart" -c "$@"