From 60d7d5845376d45d5ba1c0276b38f9369255912b Mon Sep 17 00:00:00 2001 From: Hekuran <62762955+narukeh@users.noreply.github.com> Date: Sat, 25 Apr 2020 11:01:48 +0200 Subject: [PATCH] use printf instead of echo --- .local/bin/statusbar/clock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/statusbar/clock b/.local/bin/statusbar/clock index 4ce5b5ee..49da91af 100755 --- a/.local/bin/statusbar/clock +++ b/.local/bin/statusbar/clock @@ -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')"