aboutsummaryrefslogtreecommitdiffstats
path: root/script/alert-comment-on-request
diff options
context:
space:
mode:
Diffstat (limited to 'script/alert-comment-on-request')
-rwxr-xr-xscript/alert-comment-on-request9
1 files changed, 3 insertions, 6 deletions
diff --git a/script/alert-comment-on-request b/script/alert-comment-on-request
index 74782aa13..849f4a8d8 100755
--- a/script/alert-comment-on-request
+++ b/script/alert-comment-on-request
@@ -1,7 +1,4 @@
#!/bin/bash
-
-cd "`dirname "$0"`"
-
-bundle exec ./runner 'RequestMailer.alert_comment_on_request'
-
-
+TOP_DIR="$(dirname "$BASH_SOURCE")/.."
+cd "$TOP_DIR"
+bundle exec rails runner 'RequestMailer.alert_comment_on_request'