Fix is_cmd
This commit is contained in:
parent
a4efa9b733
commit
71542eef9a
|
@ -14,7 +14,7 @@ BASE_0=${BASE_0:-$0}
|
||||||
BASE_SHELL=$(basename "$SHELL")
|
BASE_SHELL=$(basename "$SHELL")
|
||||||
|
|
||||||
is_cmd() {
|
is_cmd() {
|
||||||
type -p -- "${@}" 2> /dev/null 1> /dev/null
|
type -p -- "${@}" 2> /dev/null 1> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_sourced; then
|
if is_sourced; then
|
||||||
|
|
Loading…
Reference in New Issue