summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xworldclock10
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