mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-09 13:55:41 +00:00
Cleanup Build Scripts
This commit is contained in:
parent
ec01b4bdfb
commit
ce9b26a509
16 changed files with 452 additions and 377 deletions
|
@ -20,28 +20,31 @@
|
|||
# Specify Input and Output Files
|
||||
# ******************************
|
||||
|
||||
_input=$TRAVIS_BUILD_DIR/_generator_lists/bad-user-agents.list
|
||||
_output=$TRAVIS_BUILD_DIR/.dev-tools/_robots_input/robots-input.txt
|
||||
_input=${TRAVIS_BUILD_DIR}/_generator_lists/bad-user-agents.list
|
||||
_output=${TRAVIS_BUILD_DIR}/.dev-tools/_robots_input/robots-input.txt
|
||||
|
||||
# *****************
|
||||
# Truncate our file
|
||||
# *****************
|
||||
|
||||
sudo truncate -s 0 $_output
|
||||
sudo truncate -s 0 ${_output}
|
||||
|
||||
# ********************************************
|
||||
# Use sed to strip the \ out of the input file
|
||||
# ********************************************
|
||||
|
||||
sed 's/\\ / /g' $_input > $_output
|
||||
|
||||
# ***************************************************
|
||||
# Use cut to strip the domains out of the url strings
|
||||
# ***************************************************
|
||||
#cut -d'\' -f3 $_input > $_output
|
||||
sed 's/\\ / /g' ${_input} > ${_output}
|
||||
|
||||
# *************************************
|
||||
# Sort our output file and remove dupes
|
||||
# *************************************
|
||||
|
||||
sort -u $_output -o $_output
|
||||
sort -u ${_output} -o ${_output}
|
||||
|
||||
# **********************
|
||||
# Exit With Error Number
|
||||
# **********************
|
||||
|
||||
exit ${?}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue