aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-01 15:22:32 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-01 15:22:32 +0100
commitc9d8f483e727734a7f0afad9871df516e8c0470c (patch)
treef706fcc00cd82c69b90019dd00606905c7a83d43 /script
parent48c4c19c64c719af8d23c9d46111539b9d447b6d (diff)
parent1df6f6bfaf51c71c40bca4228cf3db5006306694 (diff)
Merge remote-tracking branch 'origin/develop' into develop
Diffstat (limited to 'script')
-rwxr-xr-xscript/load-exim-logs5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/load-exim-logs b/script/load-exim-logs
index 5ca0c66f8..00b6b9825 100755
--- a/script/load-exim-logs
+++ b/script/load-exim-logs
@@ -5,7 +5,10 @@ LOC=`dirname "$0"`
# Specific file if specified
if [ x$1 != x ]
then
- f=`abspath "$1"`
+ case "$1" in
+ /*) f=$1 ;;
+ *) f=$(pwd)/$1 ;;
+ esac
cd "$LOC"
bundle exec ./runner 'EximLog.load_file("'$f'")'
exit