mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
find_binary() less ambiguous variables
closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/238
This commit is contained in:
parent
d3d151fb78
commit
07271ef488
2 changed files with 4 additions and 4 deletions
|
@ -285,10 +285,10 @@ check_args() {
|
|||
}
|
||||
|
||||
find_binary() {
|
||||
local x= path= bin=$1 bin_paths='/bin /usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
|
||||
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
|
||||
|
||||
for x in $bin_paths; do
|
||||
path="$x/$bin"
|
||||
path="$x/$binary"
|
||||
|
||||
if [ -x $path ]; then
|
||||
echo $path
|
||||
|
|
|
@ -121,10 +121,10 @@ check_dirs() {
|
|||
}
|
||||
|
||||
find_binary() {
|
||||
local x= path= bin=$1 bin_paths='/bin /usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
|
||||
local x= path= binary=$1 bin_paths='/bin /usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
|
||||
|
||||
for x in $bin_paths; do
|
||||
path="$x/$bin"
|
||||
path="$x/$binary"
|
||||
|
||||
if [ -x $path ]; then
|
||||
echo $path
|
||||
|
|
Loading…
Add table
Reference in a new issue