From 14fe0e5e56c3f396582c49f6ec30e7c8aacd75f1 Mon Sep 17 00:00:00 2001 From: FOI archive email account Date: Sun, 29 Jul 2012 12:57:59 +0100 Subject: Fix loading of specific file abspath is not a standard command. Replace with a case statement. --- script/load-exim-logs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'script') 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 -- cgit v1.2.3