mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
Fix command_exists for empty string
This commit is contained in:
parent
6129d9e954
commit
40ed4e60ba
1 changed files with 2 additions and 6 deletions
|
@ -1,12 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# no-op hack to set dependency order resolution
|
|
||||||
dep() {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
command_exists() {
|
command_exists() {
|
||||||
type "$1" &> /dev/null
|
local -r cmd="${1:-}"
|
||||||
|
[ -n $cmd ] && type "$cmd" &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
platform::existing_command() {
|
platform::existing_command() {
|
||||||
|
|
Loading…
Reference in a new issue