use printf instead of echo

This commit is contained in:
Hekuran 2020-04-25 11:01:48 +02:00 committed by GitHub
parent c2f5283d10
commit 60d7d58453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ case $BLOCK_BUTTON in
- Middle click opens calcurse if installed" ;;
esac
echo "$(date '+%Y %b %d (%a) %I:%M%p') $icon $(date '+%I:%M%p')"
printf '%s %s%s\n' "$(date '+%Y %b %d (%a)')" "$icon" "$(date '+%I:%M%p')"
#for europeans, use this
#echo "$(date '+%a %d/%m') $icon $(date '+%I:%M%p')"
#printf '%s %s%s\n' "$(date '+%a %d/%m')" "$icon" "$(date '+%I:%M%p')"