-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 5/12/2018 8:25 PM, Matt Darfeuille wrote: > On 5/13/2018 2:58 AM, Tom Eastep wrote: >> On 05/12/2018 02:39 PM, Matt Darfeuille wrote: >>> Signed-off-by: Matt Darfeuille <matd...@gmail.com> --- >>> build/release | 4 ++++ 1 file changed, 4 insertions(+) >>> >>> diff --git a/build/release b/build/release index >>> b54386c0..6bb7a482 100755 --- a/build/release +++ >>> b/build/release @@ -307,6 +307,10 @@ elif [ -n >>> "$CHECKOUT_BRANCH_NAME" ]; then checkout_branch_func $WEBDIR >>> $CHECKOUT_BRANCH_NAME fi >>> >>> +if ! grep "$VERSION"; then + fatal_error "File >>> $WEBDIR/index.html does not contain \"${VERSION}\"." +fi + if [ >>> -z "$GIT_CODE_OBJECT" -a -z "$GIT_RELEASE_OBJECT" ]; then >>> create_tag $GIT create_tag $GITRELEASEDIR >>> >> >> How can the 'grep' command possibly work? >> > > If $VERSION is not found in index.html it make no sense to push > the master branch of the web repo. So the release script should > exit if $VERSION is not found in the file. That is why I'd like to > guard about it (note that the script will insure that the master > branch is checked out). > > What am I missing?
Nowhere in that command is index.html mentioned... - -Tom - -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJa97ClAAoJEJbms/JCOk0QfeQQAITUJGuc2xixI9s//teoNb+k uWU0tFzMNSH4ROtKTripmnZEWvuDlP8XrWab4cLJWjsIHwbIQMmV74a9bilvnyvM jf4ly/mpzgdNpjs3NIYUg0wVZj1EetcH/xKsu+xJ7J0VEIOc2d13uAVzEKgt71xI TCHhKXYDXHFcZMBYIGrjZ6FrmuDt66zuGpNjOPkTZfEPrt4dfdGLaP8aKuU9RAQD SXuGSXYXj5lZpTLBqrOkPKK+J7I1Tb1Gtv81vIi1416nR1XcN/0NTvdL62JFk8Gy gnBnSsPRwRLrgFoTDTe2FeI/UIugBqdE2g2zfF4Fi5ylCq6oBvAPa6ToznfmeQvX WcIivrJ6xtFmCjv5/rP2DvnhRMY9elxAXdzBjWihIMz8R9S0G/22vMd7sgSllk4a zqS28SoCzwB9cjeNYazoJNmHZTXktZvud8nYhhWeaByM6KadJkNkVQyy4YGOH4+S R2lUirhtW2cCW9PDS4ci7ZXQTxGypwqWLxx720R0ZW7ZHMNgqr7IuheB+10HEOgw 2Ja1+LYIgXpJZU/JHDDVTNiWbHOTeQPY8+ZJ4AuxY/U2F40xR1WEiSCLKVy3O4ug byDR+JIESU3v8xwx+uU3d8nyuZhx6LwhchcjLIyMHFCjHhVEwk74iRjTa71FakTq pKT7pW0wUYGGIkCTIqKC =Ney7 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Shorewall-devel mailing list Shorewall-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-devel