mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-09 13:55:41 +00:00
Write Build / Version Number into README.md
This commit is contained in:
parent
b4da23be07
commit
68c0560e10
2 changed files with 9 additions and 8 deletions
|
@ -13,26 +13,26 @@ _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
|
||||
# *****************************************************
|
||||
VERSIONUMBER=$IFS
|
||||
IFS=$'\n'
|
||||
echo $_startmarker >> $_tmpnginxA
|
||||
printf " Version: "$MY_GIT_TAG "" >> $_tmpnginxA
|
||||
printf " "$MY_GIT_TAG "" >> $_tmpnginxA
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue