aboutsummaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common')
-rwxr-xr-xlib/common10
1 files changed, 9 insertions, 1 deletions
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}