aboutsummaryrefslogtreecommitdiffstats
path: root/script/delete-old-things
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-06-03 14:04:58 +0100
committerRobin Houston <robin.houston@gmail.com>2012-06-03 14:04:58 +0100
commitb357d29826a67ad527c63d823290226ae2d0c871 (patch)
tree7b7f3fb020b9066300fa61da9797591cf8372f01 /script/delete-old-things
parenta4b739fde6a9da0a72c6171dad020579604b6757 (diff)
Make the scripts bundler-aware
Diffstat (limited to 'script/delete-old-things')
-rwxr-xr-xscript/delete-old-things9
1 files changed, 3 insertions, 6 deletions
diff --git a/script/delete-old-things b/script/delete-old-things
index 1d8cf645b..063d85e1f 100755
--- a/script/delete-old-things
+++ b/script/delete-old-things
@@ -1,9 +1,6 @@
#!/bin/bash
-LOC=`dirname $0`
-
-"$LOC/runner" 'PostRedirect.delete_old_post_redirects()'
-
-"$LOC/runner" 'TrackThingsSentEmail.delete_old_track_things_sent_email()'
-
+cd "`dirname "$0"`"
+bundle exec ./runner 'PostRedirect.delete_old_post_redirects()'
+bundle exec ./runner 'TrackThingsSentEmail.delete_old_track_things_sent_email()'