1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #18459 from Microsoft/jjh/winci-bash4fix

Windows CI Fix: Allow bash v4
This commit is contained in:
David Calavera 2015-12-10 08:58:32 -08:00
commit 31a31adf7e

View file

@ -56,6 +56,13 @@ while [ $# -gt 0 ]; do
layersFs=$(echo "$manifestJson" | jq --raw-output '.fsLayers | .[] | .blobSum')
IFS=$'\n'
# bash v4 on Windows CI requires CRLF seperator
if [ "$(go env GOHOSTOS)" = 'windows' ]; then
major=$(echo ${BASH_VERSION%%[^0.9]} | cut -d. -f1)
if [ "$major" -ge 4 ]; then
IFS=$'\r\n'
fi
fi
layers=( ${layersFs} )
unset IFS