diff options
author | FOI archive email account <foi@novelty.ukcod.org.uk> | 2012-07-29 12:57:59 +0100 |
---|---|---|
committer | FOI archive email account <foi@novelty.ukcod.org.uk> | 2012-07-29 12:57:59 +0100 |
commit | c1d2580892033d28ff05f3d47cee78aaef963c29 (patch) | |
tree | 08f7ef47387fe9652a6d1f554747d138bebc67cd | |
parent | d7d3cf4703c38d4e0bc883f224b54ed9b2774efd (diff) |
Fix loading of specific file
abspath is not a standard command. Replace with a case statement.
-rwxr-xr-x | script/load-exim-logs | 5 |
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 |