summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <dr@jones.dk>2013-11-16 15:31:48 +0100
committerJonas <dr@jones.dk>2013-11-16 15:31:48 +0100
commit8fdbfa672945f45614d6b11c0b229757145d1a84 (patch)
treef99e762828abdd19791108cb71809b186ea0ec94
parent34b192d77c9a1e8c6e292079c3fc2737f6833cb8 (diff)
Tidy reading config files.
-rwxr-xr-xlocalikiblogcreate5
1 files changed, 2 insertions, 3 deletions
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"