mirror of https://github.com/docker/docs.git
Merge pull request #18397 from Microsoft/jjh/fix-windows-ci
Fix broken Windows CI
This commit is contained in:
commit
94d5459a0c
|
@ -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
|
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
|
||||||
GITCOMMIT="$GITCOMMIT-dirty"
|
GITCOMMIT="$GITCOMMIT-dirty"
|
||||||
fi
|
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
|
elif [ "$DOCKER_GITCOMMIT" ]; then
|
||||||
GITCOMMIT="$DOCKER_GITCOMMIT"
|
GITCOMMIT="$DOCKER_GITCOMMIT"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue