From 34f0a1ba455f7bb392c94271bc5ff111a08ed4e4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 23 May 2013 00:09:51 -0400 Subject: lib/blacklist.sh:blacklist-cat(): download blacklist iff it doesn't exist --- src/lib/blacklist.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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() ( -- cgit v1.2.3-54-g00ecf