From eed8b64bdbdcc69dc8ea44a9d69af830d6970573 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 18 Jun 2015 18:05:04 +0100 Subject: Use BASH_SOURCE to return the script path. It is reliable in the case where the script is sourced from another script. --- script/handle-mail-replies | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/handle-mail-replies') 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 "$@" -- cgit v1.2.3