mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
FIX NginX Versioning Info in README
This commit is contained in:
parent
c77d5291ab
commit
4eee3f829f
1 changed files with 9 additions and 8 deletions
|
@ -68,9 +68,10 @@ _inputdbA=/tmp/lastupdated.db
|
|||
_tmpnginxA=tmpnginxA
|
||||
_startmarker="_______________"
|
||||
_endmarker="____________________"
|
||||
_startmarker2="##----------- TESTED ON ------------"
|
||||
_endmarker2="##----------------------------------"
|
||||
nginxv1="1.10"
|
||||
_startmarker2="**********************************************************************"
|
||||
_endmarker2="********************************************************************************"
|
||||
nginxv="nginx version: nginx/1.10"
|
||||
nginxv1=$(cat ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv1.txt)
|
||||
nginxv2=$(cat ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv2.txt)
|
||||
|
||||
# ---------
|
||||
|
@ -105,16 +106,16 @@ updateReadme2 () {
|
|||
# PRINT NGINX VERSION INFORMATION INTO README.md
|
||||
# **********************************************
|
||||
|
||||
printf '%s\n%s\n%s\n%s' "$_startmarker2" "## ${nginxv1}" "## > ${nginxv2}" "$_endmarker2" >> "$_tmpnginxA"
|
||||
printf '%s\n%s\n%s\n%s\n%s' "$_startmarker2" "##### ${nginxv}" "##### ${nginxv1}" "##### ${nginxv2}" "$_endmarker2" >> "$_tmpnginxA"
|
||||
mv ${_tmpnginxA} ${_inputdbA}
|
||||
ed -s ${_inputdbA}<<\IN
|
||||
1,/##----------- TESTED ON ------------/d
|
||||
/##----------------------------------/,$d
|
||||
1,/**********************************************************************/d
|
||||
/********************************************************************************/,$d
|
||||
,d
|
||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
||||
/##----------- TESTED ON ------------/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
Reference in a new issue