X-Git-Url: http://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Flist.sh;fp=cards%2Flist.sh;h=6e78def7ae2856ee915bcdbcdb67d02cb3b7ee1b;hp=a7b8c13671dadc3d823d87368619a5ae9e08ec21;hb=efc3ea0ce4c4d8efbe95d138e18c266ee2547975;hpb=69b83ace4446bad3db994806448b3d81c9cb5809 diff --git a/cards/list.sh b/cards/list.sh index a7b8c13..6e78def 100755 --- a/cards/list.sh +++ b/cards/list.sh @@ -113,11 +113,9 @@ print_cards(){ while read cardfile; do cachefile="${_DATA}/cache/${cardfile##*/}.cache" - # if [ -s "$cachefile" -a "$cachefile" -nt "$cardfile" \ - # -a "$cachefile" -nt "${_EXEC}/cards" ]; then if [ -s "$cachefile" -a "$cachefile" -nt "$cardfile" ]; then cat "$cachefile" - else + elif [ -s "$cardfile" ]; then print_card "$cardfile" |tee "$cachefile" fi done