diff options
author | FOI archive email account <foi@novelty.ukcod.org.uk> | 2012-07-29 12:57:59 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-08-01 14:50:04 +0100 |
commit | 14fe0e5e56c3f396582c49f6ec30e7c8aacd75f1 (patch) | |
tree | 9e5bb15374963827a36278f78e5b8ec95d5ba5e4 | |
parent | 1f9cfd4bf7056b590c5352b81996900ce608b0d5 (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 |