File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
2- VERSION_STRING=" const version ="
3- VER=` grep " $VERSION_STRING " server.js | awk ' {print $NF}' `
4- NEW_VER=$(( $VER + 1 ))
5- echo " current version: $VER , new version: $NEW_VER "
6- sed -i " s/$VERSION_STRING $VER $/$VERSION_STRING $NEW_VER /" server.js
7-
8- git commit -am " bumpup to $NEW_VER "
9- git push public
1+ #! /usr/bin/env bash
2+ VERSION_STRING=" const version ="
3+ VER=` grep " $VERSION_STRING " server.js | awk ' {print $NF}' `
4+ NEW_VER=$(( $VER + 1 ))
5+ echo " current version: $VER , new version: $NEW_VER "
6+ sed -i " s/$VERSION_STRING $VER $/$VERSION_STRING $NEW_VER /" server.js
7+
8+ git commit -am " bumpup to $NEW_VER "
9+ git push public
Original file line number Diff line number Diff line change 11const port = 8080
2- const version =
2+ const version = 5
33let http = require ( 'http' )
44
55http . createServer ( function ( request , response ) {
You can’t perform that action at this time.
0 commit comments