OrbisAI Sec
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
1 deletions
-
common/base.sh
|
|
@ -3,7 +3,6 @@ which() |
|
|
# on some systems 'which' command is considered deprecated and not installed by default |
|
|
# 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 |
|
|
# 'command -v' replacement does not work exactly the same way. it outputs shell aliases if present |
|
|
# $1 - executable name |
|
|
# $1 - executable name |
|
|
local IFS=: |
|
|
|
|
|
for p in $PATH; do |
|
|
for p in $PATH; do |
|
|
[ -x "$p/$1" ] && { |
|
|
[ -x "$p/$1" ] && { |
|
|
echo "$p/$1" |
|
|
echo "$p/$1" |
|
|
|