mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* bin/date: add --short which actually prints the current date
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
8b67bda974
commit
695d87ce77
1 changed files with 3 additions and 0 deletions
3
bin/date
3
bin/date
|
@ -20,5 +20,8 @@
|
|||
if [ "$1" = "--detail" ]; then
|
||||
date
|
||||
exit 0
|
||||
elif [ "$1" = "--short" ]; then
|
||||
date +%Y-%m-%d
|
||||
exit 0
|
||||
fi
|
||||
printf "\005Y-\005m-\005d "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue