mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
Merge pull request #239 from mitchellkrogza/alpine
find_binary() less ambiguous variables
This commit is contained in:
commit
2b9e67418b
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