Fix command_exists for empty string

This commit is contained in:
Denis Isidoro 2019-10-05 14:17:41 -03:00
parent 6129d9e954
commit 40ed4e60ba

View File

@ -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() {