Browse Source

fix: semgrep_bash.lang.security.ifs-tampering.ifs-tampering_common/base.sh_6

pull/1840/head
orbisai-sec 9 months ago
parent
commit
0c7db76e93
  1. 1
      common/base.sh

1
common/base.sh

@ -3,7 +3,6 @@ which()
# on some systems 'which' command is considered deprecated and not installed by default
# 'command -v' replacement does not work exactly the same way. it outputs shell aliases if present
# $1 - executable name
local IFS=:
for p in $PATH; do
[ -x "$p/$1" ] && {
echo "$p/$1"

Loading…
Cancel
Save