aboutsummaryrefslogtreecommitdiffstats
path: root/script/load-exim-logs
diff options
context:
space:
mode:
Diffstat (limited to 'script/load-exim-logs')
-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