fix is_cmd to detect executable binaries only
This commit is contained in:
parent
ae5a5294cc
commit
47e6cfe78a
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ BASE_0=${BASE_0:-$0}
|
||||||
BASE_SHELL=$(basename "$SHELL")
|
BASE_SHELL=$(basename "$SHELL")
|
||||||
|
|
||||||
is_cmd() {
|
is_cmd() {
|
||||||
type -- "${@}" 2> /dev/null 1> /dev/null
|
type -p -- "${@}" 2> /dev/null 1> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_sourced; then
|
if is_sourced; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue