mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
(Minor) Cirrus: Print timestamp at start
Also record into a file in case a later reference is required Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
148b4920dc
commit
4e7a7ffe9d
|
@ -17,6 +17,7 @@ PACKER_BASE=${PACKER_BASE:-./contrib/cirrus/packer}
|
|||
CIRRUS_BUILD_ID=${CIRRUS_BUILD_ID:-DEADBEEF} # a human
|
||||
CIRRUS_BASE_SHA=${CIRRUS_BASE_SHA:-HEAD}
|
||||
CIRRUS_CHANGE_IN_REPO=${CIRRUS_CHANGE_IN_REPO:-FETCH_HEAD}
|
||||
START_STAMP_FILEPATH="${START_STAMP_FILEPATH:-/var/tmp/start.timestamp}"
|
||||
|
||||
if ! [[ "$PATH" =~ "/usr/local/bin" ]]
|
||||
then
|
||||
|
@ -135,6 +136,13 @@ ircmsg() {
|
|||
set -e
|
||||
}
|
||||
|
||||
start_timestamp() {
|
||||
req_env_var "START_STAMP_FILEPATH $START_STAMP_FILEPATH"
|
||||
[[ -r "$START_STAMP_FILEPATH" ]] || \
|
||||
echo -e ".\nThe time at the tone will be:\n$(date --iso-8601=seconds | \
|
||||
tee $START_STAMP_FILEPATH)\nBLEEEEEEEEEEP!\n.\n" # Cirrus strips blank lines from output
|
||||
}
|
||||
|
||||
# Run sudo in directory with GOPATH set
|
||||
cdsudo() {
|
||||
DIR="$1"
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
source $(dirname $0)/lib.sh
|
||||
|
||||
start_timestamp
|
||||
|
||||
req_env_var "
|
||||
USER $USER
|
||||
HOME $HOME
|
||||
|
|
Loading…
Reference in a new issue