Skip to content

Commit

Permalink
Merge pull request moby#40169 from cpuguy83/windows_version_quad_err
Browse files Browse the repository at this point in the history
Windows: Only set VERSION_QUAD if unset
  • Loading branch information
thaJeztah committed Nov 12, 2019
2 parents 36ffe9e + ce931f2 commit 9bcbc66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/make/.go-autogen
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ if [ "$(go env GOOS)" = "windows" ]; then
fi

# Generate a Windows file version of the form major,minor,patch,build (with any part optional)
VERSION_QUAD=$(echo -n $VERSION | sed -re 's/^([0-9.]*).*$/\1/' | tr . ,)
if [ ! -v VERSION_QUAD ]; then
VERSION_QUAD=$(echo -n $VERSION | sed -re 's/^([0-9.]*).*$/\1/' | tr . ,)
fi

# Pass version and commit information into the resource compiler
defs=
Expand Down

0 comments on commit 9bcbc66

Please sign in to comment.