aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFOI archive email account <foi@novelty.ukcod.org.uk>2012-07-29 12:57:59 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-16 11:40:18 +0100
commit9fb7527720321e43f4ea2464a1dfca1b2e0eb46b (patch)
tree6e6e217d1d6842bdaeb4d154567901a04efaba8b
parent4d1ffaf2e2ad0be7a1d5b520fed816a28e52b0bb (diff)
Fix loading of specific file
abspath is not a standard command. Replace with a case statement.
-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