mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +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
|
||||
|
||||
# no-op hack to set dependency order resolution
|
||||
dep() {
|
||||
:
|
||||
}
|
||||
|
||||
command_exists() {
|
||||
type "$1" &> /dev/null
|
||||
local -r cmd="${1:-}"
|
||||
[ -n $cmd ] && type "$cmd" &> /dev/null
|
||||
}
|
||||
|
||||
platform::existing_command() {
|
||||
|
|
Loading…
Reference in a new issue