mirror of https://github.com/docker/docs.git
Update release script to work with any version pattern
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
parent
91ec013436
commit
4357f4ca3b
|
@ -120,7 +120,7 @@ display "Bump version number to ${VERSION}"
|
|||
# Why 'sed' and then 'mv' instead of 'sed -i'? BSD / GNU sed compatibility.
|
||||
# Macs have BSD sed by default, Linux has GNU sed. See
|
||||
# http://unix.stackexchange.com/questions/92895/how-to-achieve-portability-with-sed-i-in-place-editing
|
||||
sed -e "s/Version = \".*-dev\"/Version = \"${VERSION}\"/g" version/version.go >version/version.go.new
|
||||
sed -e "s/Version = \".*\"$/Version = \"${VERSION}\"/g" version/version.go >version/version.go.new
|
||||
checkError "Unable to change version in version/version.go"
|
||||
mv -- version/version.go.new version/version.go
|
||||
|
||||
|
|
Loading…
Reference in New Issue