summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-23 00:09:51 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-23 00:09:51 -0400
commit34f0a1ba455f7bb392c94271bc5ff111a08ed4e4 (patch)
treeadf05dc57074b9cb2d1c988f9de72eebd5a59f3a /src
parent379ff751c59d528bd4f1a8e7a24fc039e8e408ba (diff)
lib/blacklist.sh:blacklist-cat(): download blacklist iff it doesn't exist
Diffstat (limited to 'src')
-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() (