mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 03:29:57 +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
|
_tmpnginxA=tmpnginxA
|
||||||
_startmarker="_______________"
|
_startmarker="_______________"
|
||||||
_endmarker="____________________"
|
_endmarker="____________________"
|
||||||
_startmarker2="##----------- TESTED ON ------------"
|
_startmarker2="**********************************************************************"
|
||||||
_endmarker2="##----------------------------------"
|
_endmarker2="********************************************************************************"
|
||||||
nginxv1="1.10"
|
nginxv="nginx version: nginx/1.10"
|
||||||
|
nginxv1=$(cat ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv1.txt)
|
||||||
nginxv2=$(cat ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv2.txt)
|
nginxv2=$(cat ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv2.txt)
|
||||||
|
|
||||||
# ---------
|
# ---------
|
||||||
|
@ -105,16 +106,16 @@ updateReadme2 () {
|
||||||
# PRINT NGINX VERSION INFORMATION INTO README.md
|
# 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}
|
mv ${_tmpnginxA} ${_inputdbA}
|
||||||
ed -s ${_inputdbA}<<\IN
|
ed -s ${_inputdbA}<<\IN
|
||||||
1,/##----------- TESTED ON ------------/d
|
1,/**********************************************************************/d
|
||||||
/##----------------------------------/,$d
|
/********************************************************************************/,$d
|
||||||
,d
|
,d
|
||||||
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
.r /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
||||||
/##----------- TESTED ON ------------/x
|
/**********************************************************************/x
|
||||||
.t.
|
.t.
|
||||||
.,/##----------------------------------/-d
|
.,/********************************************************************************/-d
|
||||||
#,p
|
#,p
|
||||||
#,p used to print output replaced with w below to write
|
#,p used to print output replaced with w below to write
|
||||||
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
w /home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/README.md
|
||||||
|
|
Loading…
Add table
Reference in a new issue