summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-23 00:14:21 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-23 00:14:21 -0400
commitf0747712a22addd54c33092f61f9cc5d3eaf2a90 (patch)
treeff4251fdc0a46268324d60b8f72e0580d83ab6e4 /src
parent34f0a1ba455f7bb392c94271bc5ff111a08ed4e4 (diff)
lib/blacklist.sh: source conf.sh globally to ensure XDG_CACHE_HOME is set
Diffstat (limited to 'src')
-rw-r--r--src/lib/blacklist.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/blacklist.sh b/src/lib/blacklist.sh
index ec34df1..79b79ce 100644
--- a/src/lib/blacklist.sh
+++ b/src/lib/blacklist.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+# make sure XDG_CACHE_HOME is set
+. /usr/share/libretools/conf.sh
+
blacklist-normalize() {
sed -e 's/^[^:]*$/&::/' -e 's/^[^:]*:[^:]*$/&:/'
}
@@ -14,7 +17,6 @@ blacklist-cat() {
blacklist-update() (
set -euE
- . /usr/share/libretools/conf.sh
. libremessages
load_files libretools
check_vars BLACKLIST