Skip to content

Commit a657349

Browse files
committed
Refactor the initial message banner
1 parent 1deecac commit a657349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssh-oci-bastion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
set -o pipefail
44

5-
readonly VER=2.1.3
5+
readonly VER=2.1.4
66

77
# Remove the longest `*/` prefix
88
readonly SCRIPT_NAME_WITH_EXT="${0##*/}"
@@ -88,7 +88,7 @@ while getopts np:o:h OPT; do
8888
;;
8989
esac
9090
done
91-
echo -e "\n# \`$0${*+ }$*\` v$VER: run by \`${USER:-${USERNAME:-${LOGNAME:-UID #$UID}}}@${HOSTNAME}\` in \`${PWD}\` #\n"
91+
echo -e "\n[$(date +'%T %Z') v$VER] ${USER:-${USERNAME:-${LOGNAME:-UID #$UID}}}@${HOSTNAME} ${PWD}> $0${*+ }$*\n"
9292
shift $((OPTIND - 1))
9393

9494
# Process positional parameters

0 commit comments

Comments
 (0)