diff options
Diffstat (limited to 'lib/common')
-rwxr-xr-x | lib/common | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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} |