mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
[GHA] Fix generate-robots.sh
Install tput
This commit is contained in:
parent
722c1e18bc
commit
1dfb524913
2 changed files with 9 additions and 0 deletions
1
.github/workflows/action.yml
vendored
1
.github/workflows/action.yml
vendored
|
@ -28,6 +28,7 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install -y --assume-yes nginx-extras
|
||||
sudo apt-get -y install dos2unix
|
||||
sudo apt-get install libncurses5-dbg
|
||||
|
||||
|
||||
- name: Run build
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
@ -66,6 +69,9 @@ _tmprobots=./tmp/robots.txt
|
|||
_inputtmp=./dev-tools/_robots_input/robots.tmp
|
||||
_output=./dev-tools/_robots_input/robots-input.txt
|
||||
|
||||
sudo mkdir ./tmp
|
||||
sudo touch ./tmp/robots.txt
|
||||
|
||||
# ---------
|
||||
# Variables
|
||||
# ---------
|
||||
|
@ -111,6 +117,8 @@ generateRobotsFile
|
|||
# Exit With Error Number
|
||||
# ----------------------
|
||||
|
||||
sudo rm -rf ./tmp
|
||||
|
||||
exit ${?}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue