[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone.contrib.usher: 40fbdb3fc287c
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone.contrib.usher: 40fbdb3fc287c60945393daeacd291bfc7476bb4 |
Date: |
Wed, 27 Apr 2011 09:56:30 +0200 (CEST) |
revision: 40fbdb3fc287c60945393daeacd291bfc7476bb4
date: 2011-04-27T07:42:47
author: Richard Levitte <address@hidden>
branch: net.venge.monotone.contrib.usher
changelog:
* utils/usherctl.in: Explain the way the config file is sourced, and do
the sourcing correctly.
manifest:
format_version "1"
new_manifest [a8c684dd248e3c10e52ae567a72b2df1f2a742b0]
old_revision [b17b53539bbc2dcb9628f71b1fac79bea77d204e]
patch "utils/usherctl.in"
from [007584ffbe37e97a04ffc96ff2ec13212c5d93d1]
to [5349323a31abcbce752c8b6428a0a88e55734ffa]
============================================================
--- utils/usherctl.in 007584ffbe37e97a04ffc96ff2ec13212c5d93d1
+++ utils/usherctl.in 5349323a31abcbce752c8b6428a0a88e55734ffa
@@ -69,7 +69,11 @@ done
esac
done
-. "`dirname $config_file`/$config_file"
+# The reason for this construction is that if the given config file is just
+# a file name, shell will try to find it along $PATH instead of the current
+# working directory. Since dirname will at least output a '.', this construct
+# does the right thing.
+. "`dirname $config_file`/`basename $config_file`"
# Apply default where nothing is set.
USHER_CONFDIR=${USHER_CONFDIR:address@hidden@/usher}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone.contrib.usher: 40fbdb3fc287c60945393daeacd291bfc7476bb4,
code <=