summaryrefslogtreecommitdiff
path: root/src/libretools.conf
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 22:10:26 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 22:10:26 -0500
commit06f10b87d16d4c83016ff3ef21217494f921d93b (patch)
treea96805d184775b9b45464763fa78d4786ddc38b6 /src/libretools.conf
parent01d928f223a23f28af04dc1cdfcfd62ed6cc3f61 (diff)
many fixes
Diffstat (limited to 'src/libretools.conf')
-rw-r--r--src/libretools.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libretools.conf b/src/libretools.conf
index 20c7d90..91ec452 100644
--- a/src/libretools.conf
+++ b/src/libretools.conf
@@ -108,8 +108,8 @@ TORUPATH=/var/lib/libretools/toru
################################################################################
LIBREUSER="${SUDO_USER:-$USER}"
-LIBREHOME="$(eval echo ~$SUDO_USER)"
-if [[ -z $XDG_CONFIG_HOME ]]; then
+LIBREHOME="$(eval echo ~$LIBREUSER)"
+if [[ -z ${XDG_CONFIG_HOME:-} ]]; then
export XDG_CONFIG_HOME="${LIBREHOME}/.config"
fi
if [[ -e "$XDG_CONFIG_HOME/libretools/libretools.conf" ]]; then