fix is_cmd to detect executable binaries only

This commit is contained in:
Lockszmith (@VAST) 2025-02-27 13:54:09 -05:00
parent ae5a5294cc
commit 47e6cfe78a
1 changed files with 1 additions and 1 deletions

View File

@ -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