aboutsummaryrefslogtreecommitdiffstats
path: root/script/delete-old-things
diff options
context:
space:
mode:
Diffstat (limited to 'script/delete-old-things')
-rwxr-xr-xscript/delete-old-things9
1 files changed, 4 insertions, 5 deletions
diff --git a/script/delete-old-things b/script/delete-old-things
index 063d85e1f..a97ba4869 100755
--- a/script/delete-old-things
+++ b/script/delete-old-things
@@ -1,6 +1,5 @@
#!/bin/bash
-
-cd "`dirname "$0"`"
-
-bundle exec ./runner 'PostRedirect.delete_old_post_redirects()'
-bundle exec ./runner 'TrackThingsSentEmail.delete_old_track_things_sent_email()'
+TOP_DIR="$(dirname "$BASH_SOURCE")/.."
+cd "$TOP_DIR"
+bundle exec rails runner 'PostRedirect.delete_old_post_redirects'
+bundle exec rails runner 'TrackThingsSentEmail.delete_old_track_things_sent_email'