mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 11:40:22 +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() {
|
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
|
for x in $bin_paths; do
|
||||||
path="$x/$bin"
|
path="$x/$binary"
|
||||||
|
|
||||||
if [ -x $path ]; then
|
if [ -x $path ]; then
|
||||||
echo $path
|
echo $path
|
||||||
|
|
|
@ -121,10 +121,10 @@ check_dirs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
find_binary() {
|
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
|
for x in $bin_paths; do
|
||||||
path="$x/$bin"
|
path="$x/$binary"
|
||||||
|
|
||||||
if [ -x $path ]; then
|
if [ -x $path ]; then
|
||||||
echo $path
|
echo $path
|
||||||
|
|
Loading…
Add table
Reference in a new issue