fix is_cmd to detect executable binaries only
This commit is contained in:
parent
ae5a5294cc
commit
47e6cfe78a
|
@ -14,7 +14,7 @@ BASE_0=${BASE_0:-$0}
|
|||
BASE_SHELL=$(basename "$SHELL")
|
||||
|
||||
is_cmd() {
|
||||
type -- "${@}" 2> /dev/null 1> /dev/null
|
||||
type -p -- "${@}" 2> /dev/null 1> /dev/null
|
||||
}
|
||||
|
||||
if is_sourced; then
|
||||
|
|
Loading…
Reference in New Issue