File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ read -n 1 -s -r -p "Press any key to continue"
4040# `-d "."` specifies `.` as the delimiter.
4141# `-f N` specifies which of the delimited sections to keep
4242# `cut -c 2-` gets rid of the "v" prefix by selecting from the second character onwards.
43- CURRENT_VERSION=$( grep " currentVersion" guides/versions.yml | sed " s/currentVersion.* \(v.*\)\" /\1/" )
43+ CURRENT_VERSION=$( grep " currentVersion" guides/versions.yml | sed " s/currentVersion: \(v.*\)/\1/" )
4444MAJOR_VERSION=$( echo $CURRENT_VERSION | cut -d " ." -f 1 | cut -c 2-)
4545MINOR_VERSION=$( echo $CURRENT_VERSION | cut -d " ." -f 2)
4646PATCH_VERSION=$( echo $CURRENT_VERSION | cut -d " ." -f 3)
@@ -62,9 +62,9 @@ echo " DONE"
6262# Then we interpolate the new version and replace the closing double quote.
6363# We also add the relevant version to the list by using sed's i command.
6464echo " 🤖 Updating /guides/versions.yml"
65- sed -i .bak " s/\(currentVersion:.*v\).*/\1$( echo $NEXT_VERSION ) \" /" guides/versions.yml
65+ sed -i .bak " s/\(currentVersion:.*v\).*/\1$( echo $NEXT_VERSION ) /" guides/versions.yml
6666sed -i .bak -e " /currentVersion/i \\
67- \ \ - \" v$( echo $NEXT_VERSION ) \" " guides/versions.yml
67+ \ \ - v$( echo $NEXT_VERSION ) " guides/versions.yml
6868rm guides/versions.yml.bak
6969echo " DONE"
7070
You can’t perform that action at this time.
0 commit comments