* bin/date: add --short which actually prints the current date

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-06 20:52:59 -05:00
commit 695d87ce77

View file

@ -20,5 +20,8 @@
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
date date
exit 0 exit 0
elif [ "$1" = "--short" ]; then
date +%Y-%m-%d
exit 0
fi fi
printf "\005Y-\005m-\005d " printf "\005Y-\005m-\005d "