utils upgrade
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
date '+%d.%m.%Y %H:%M:%S'
|
||||
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
|
||||
cat <<EOF
|
||||
Usage: $(basename "$0") [-h]
|
||||
|
||||
Display current time and unix timestamp.
|
||||
|
||||
Options:
|
||||
-h, --help Show this help message
|
||||
|
||||
EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
date '+%H:%M:%S%n%s'
|
||||
|
||||
Reference in New Issue
Block a user