Write Build / Version Number into README.md

This commit is contained in:
Mitchell Krog 2017-06-02 09:56:33 +02:00
parent 5632f6c192
commit 78bc29e3ce
2 changed files with 7 additions and 7 deletions

View file

@ -13,8 +13,8 @@ _inputdbA=/tmp/lastupdated.db
_tmpnginxA=tmpnginxA
# Start and End Strings to Search for to do inserts into template
_startmarker="### --"
_endmarker="-- ###"
_startmarker=">>>"
_endmarker="<<<"
# PRINT VERSION INFORMATION INTO GLOBALBLACKLIST FILE 1
# *****************************************************
@ -26,13 +26,13 @@ echo $_endmarker >> $_tmpnginxA
IFS=$VERSIONUMBER
mv $_tmpnginxA $_inputdbA
ed -s $_inputdbA<<\IN
1,/### --/d
/-- ###/,$d
1,/>>>/d
/<<</,$d
,d
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
/### --/x
/>>>/x
.t.
.,/-- ###/-d
.,/<<</-d
#,p
#,p used to print output replaced with w below to write
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md