diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-23 00:09:51 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-23 00:09:51 -0400 |
commit | 34f0a1ba455f7bb392c94271bc5ff111a08ed4e4 (patch) | |
tree | adf05dc57074b9cb2d1c988f9de72eebd5a59f3a /src/lib | |
parent | 379ff751c59d528bd4f1a8e7a24fc039e8e408ba (diff) |
lib/blacklist.sh:blacklist-cat(): download blacklist iff it doesn't exist
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/blacklist.sh | 6 |
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() ( |