X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=cards%2Flist.sh;h=519005c08f780bc5e09dc64717fa72bd46425482;hb=83129c4d53320ec1ef894b1d1f1cc853e5276def;hp=a7b8c13671dadc3d823d87368619a5ae9e08ec21;hpb=69b83ace4446bad3db994806448b3d81c9cb5809;p=confetti diff --git a/cards/list.sh b/cards/list.sh index a7b8c13..519005c 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 @@ -150,6 +148,7 @@ filter_attendance(){ filter_cards(){ local filter f fex='x;p;' + local upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; ' filter="$(printf %s "${filter}" \ | sed -E 's;[]\/\(\)\\\$\?\.\+\*\;\[\{\}];\\&;g;