feat(sketchybar): fall back to date if ddate is missing

This commit is contained in:
winston 2022-07-31 08:55:02 +02:00
parent 1ae7d6a6dd
commit c32e92232c
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
DATE="$(ddate +'%{%A, %b %d%}')"
DATE="$(ddate +'%{%A, %b %d%}' | date +'%A, %b %d')"
sketchybar --set "$NAME" label="$DATE" icon=" "