From 8fdbfa672945f45614d6b11c0b229757145d1a84 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 16 Nov 2013 15:31:48 +0100 Subject: Tidy reading config files. --- localikiblogcreate | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'localikiblogcreate') diff --git a/localikiblogcreate b/localikiblogcreate index ae61948..987c634 100755 --- a/localikiblogcreate +++ b/localikiblogcreate @@ -14,9 +14,8 @@ BLOGWORKDIR="$HOME/public_html" BLOGPROTO="http" BLOGHOST="user.homebase.dk" -# The above can be overridden -LOCALCONFIG="/etc/local/ikiblog.conf" -. "$LOCALCONFIG" || true +# allow overriding above +[ ! -r /etc/local/ikiblog.conf ] || . /etc/local/ikiblog.conf gitdir="$BLOGGITDIR" workdir="$BLOGWORKDIR" -- cgit v1.2.3