FIX NginX Versioning Info in README

This commit is contained in:
Mitchell Krog 2019-06-29 17:58:02 +02:00
parent 324c9d42c7
commit 9e4c5becb8
No known key found for this signature in database
GPG key ID: C243C388553EDE5D
2 changed files with 8 additions and 9 deletions

View file

@ -68,8 +68,8 @@ _inputdbA=/tmp/lastupdated.db
_tmpnginxA=tmpnginxA
_startmarker="_______________"
_endmarker="____________________"
_startmarker2="**********************************************************************"
_endmarker2="********************************************************************************"
_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)
@ -109,13 +109,13 @@ updateReadme2 () {
printf '%s\n%s\n%s\n%s\n%s' "$_startmarker2" "##### ${nginxv}" "##### ${nginxv1}" "##### ${nginxv2}" "$_endmarker2" >> "$_tmpnginxA"
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

View file

@ -24,10 +24,9 @@ ____________________
- Created by: https://github.com/mitchellkrogza for use on Nginx Web Server https://www.nginx.com/
- Copyright Mitchell Krog <mitchellkrog@gmail.com>
**********************************************************************
********************************************************************************
_______________________
__________________________
Not Using Nginx? See the [![Get the APACHE ULTIMATE BAD BOT BLOCKER](https://img.shields.io/badge/APACHE%20-%20ULTIMATE%20BAD%20BOT%20BLOCKER%20%E2%9B%94-blue.svg)](https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker)