summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/blacklist.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/blacklist.sh b/src/lib/blacklist.sh
index 925a5cc..ec34df1 100644
--- a/src/lib/blacklist.sh
+++ b/src/lib/blacklist.sh
@@ -5,7 +5,11 @@ blacklist-normalize() {
}
blacklist-cat() {
- blacklist-normalize < "$XDG_CACHE_HOME/libretools/blacklist.txt"
+ local file="$XDG_CACHE_HOME/libretools/blacklist.txt"
+ if ! [[ -e $file ]]; then
+ blacklist-update
+ fi
+ blacklist-normalize < "$file"
}
blacklist-update() (