durcheinander

This commit is contained in:
koksnuss
2018-05-14 10:11:19 +02:00
parent 2077f89897
commit aa88b06bbc
4 changed files with 25 additions and 39 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash
full=$(date '+%A, %_d.%_m. %_H:%M:%S')
short=$(date '+%_H:%M')
echo $full
echo $short
SHORT=$(date '+%_H:%M')
FULL=$(date '+%A, %_d.%_m. %_H:%M:%S')
case ${BLOCK_INSTANCE} in
short) LONG=false ;;
*) LONG=true ;;
esac
[[ ${BLOCK_BUTTON} == 1 ]] && LONG=true
[[ "$LONG" == "true" ]] && echo $FULL || echo $SHORT