From 22f0f794ac4e40866c5d390a7b27b8bd6713e681 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 21 Oct 2013 23:28:03 +0200 Subject: o Removing silly formatting that left extra spaced at the end of lines. o Fixing bug in app-conf get subcommand that would only return the first part of values with an equals sign. o Makding sure $HOME is always set. --- lib/common | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common b/lib/common index 9e0db84..be3daae 100755 --- a/lib/common +++ b/lib/common @@ -199,7 +199,12 @@ _get_config_file_system() { } _get_config_file_user() { - eval $1="$HOME/.appconfig" + if [[ -z $HOME ]] + then + eval $1="" + else + eval $1="$HOME/.appconfig" + fi } _get_config_file_app() { @@ -289,6 +294,9 @@ find_resolver() { # overload their implementations. PATH=$PATH:$APPSH_HOME/bin:$APPSH_HOME/libexec +# Make sure that $HOME is present to prevent unbound errors +HOME=${HOME:-} + # Save for later usage_app=${0##*/} echo_debug=${echo_debug-no} -- cgit v1.2.3