]> git.plutz.net Git - webpoll/blobdiff - poll.sh
UI improvements
[webpoll] / poll.sh
diff --git a/poll.sh b/poll.sh
index 5624284347abf702012712528d37fb126fa39f12..de5b614c74321c93521a6ac0e1bb3c2e08f45d05 100644 (file)
--- a/poll.sh
+++ b/poll.sh
@@ -88,8 +88,12 @@ table_poll() {
   if [ "$splittimes" = yes -o "$todall" ]; then
     printf '[tr .tod [th]'
     for time in $timelist; do
-      [ "${time#*_}" = "${time}" ] && time="_${time}"
-      printf '[th . %s]' "${time#*_}"
+      case $time in
+       *-*-*_*:*) time="${time#*_}";;
+       *-*-*) time="";;
+       *:*);;  # time="${time}"
+      esac
+      printf '[th . %s]' "${time}"
     done
     printf '[th]]\n'
   fi