diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-06-18 18:05:04 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-06-23 15:43:55 +0100 |
commit | eed8b64bdbdcc69dc8ea44a9d69af830d6970573 (patch) | |
tree | 8302661b65355010ceacbf305b1e11b6bce4e06e /script/handle-mail-replies | |
parent | a125b0307c659c135c7ffe8b48d79dd702c8b422 (diff) |
Use BASH_SOURCE to return the script path.
It is reliable in the case where the script is sourced from another
script.
Diffstat (limited to 'script/handle-mail-replies')
-rwxr-xr-x | script/handle-mail-replies | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/handle-mail-replies b/script/handle-mail-replies index 15454b311..267ad5632 100755 --- a/script/handle-mail-replies +++ b/script/handle-mail-replies @@ -1,4 +1,4 @@ #!/bin/bash -cd "`dirname "$0"`" +cd "`dirname "${BASH_SOURCE[0]}"`" exec bundle exec ./handle-mail-replies.rb "$@" |