mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix broken Windows CI
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
d9755df2b3
commit
c10311bc9a
1 changed files with 5 additions and 1 deletions
|
@ -70,7 +70,11 @@ if command -v git &> /dev/null && git rev-parse &> /dev/null; then
|
|||
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
|
||||
GITCOMMIT="$GITCOMMIT-dirty"
|
||||
fi
|
||||
BUILDTIME=$(date --rfc-3339 ns | sed -e 's/ /T/')
|
||||
! BUILDTIME=$(date --rfc-3339 ns | sed -e 's/ /T/') &> /dev/null
|
||||
if [ -z $BUILDTIME ]; then
|
||||
# If using bash 3.1 which doesn't support --rfc-3389, eg Windows CI
|
||||
BUILDTIME=$(date -u)
|
||||
fi
|
||||
elif [ "$DOCKER_GITCOMMIT" ]; then
|
||||
GITCOMMIT="$DOCKER_GITCOMMIT"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue