diff options
author | æstrid | 2024-09-04 18:24:12 +1200 |
---|---|---|
committer | æstrid | 2024-09-04 18:24:12 +1200 |
commit | c5269fd0025ce012f45557fda72597fa29defa37 (patch) | |
tree | 4eea46c035ae5d00fc2ee9066e708a848986f89e | |
parent | 8411cfc0251fffc40edab42ca4da757bde1cba30 (diff) |
formatting and stuff
-rwxr-xr-x | worldclock | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/worldclock b/worldclock index f6526a0..9e55bb9 100755 --- a/worldclock +++ b/worldclock @@ -9,10 +9,9 @@ do clear echo for TZ in $ZONES ; do - if [ $TZ = "unix" ] ; then - TIME=$( date +%s ) - else - TIME=$( date ) + if [ $TZ = "unix" ] + then TIME=$( date +%s ) + else TIME=$( date ) fi echo -e $TIME "\t" $TZ done @@ -22,8 +21,7 @@ do TZ=$HOMEZONE date +%T | sed -e 's/:/ . /g' | figlet -f banner fi if [ x"$1" = x"loop" ] - then sleep 1 ; continue + then sleep 1 else break fi - sleep 1 done |