diff options
author | Jonas <dr@jones.dk> | 2013-11-16 15:31:48 +0100 |
---|---|---|
committer | Jonas <dr@jones.dk> | 2013-11-16 15:31:48 +0100 |
commit | 8fdbfa672945f45614d6b11c0b229757145d1a84 (patch) | |
tree | f99e762828abdd19791108cb71809b186ea0ec94 | |
parent | 34b192d77c9a1e8c6e292079c3fc2737f6833cb8 (diff) |
Tidy reading config files.
-rwxr-xr-x | localikiblogcreate | 5 |
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" |