mirror of https://github.com/docker/cli.git
Merge pull request #3388 from crazy-max/fix-versionquad
ensure version quad for goversioninfo
This commit is contained in:
commit
a45974a468
|
@ -17,10 +17,10 @@ cat > ./cli/winresources/versioninfo.json <<EOL
|
||||||
"FixedFileInfo":
|
"FixedFileInfo":
|
||||||
{
|
{
|
||||||
"FileVersion": {
|
"FileVersion": {
|
||||||
"Major": $(echo "$VERSION_QUAD" | cut -d. -f1),
|
"Major": $(echo "${VERSION_QUAD:-0}" | cut -d. -f1),
|
||||||
"Minor": $(echo "$VERSION_QUAD" | cut -d. -f2),
|
"Minor": $(echo "${VERSION_QUAD:-0}" | cut -d. -f2),
|
||||||
"Patch": $(echo "$VERSION_QUAD" | cut -d. -f3),
|
"Patch": $(echo "${VERSION_QUAD:-0}" | cut -d. -f3),
|
||||||
"Build": $(echo "$VERSION_QUAD" | cut -d. -f4)
|
"Build": $(echo "${VERSION_QUAD:-0}" | cut -d. -f4)
|
||||||
},
|
},
|
||||||
"FileFlagsMask": "3f",
|
"FileFlagsMask": "3f",
|
||||||
"FileFlags ": "00",
|
"FileFlags ": "00",
|
||||||
|
|
Loading…
Reference in New Issue