We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9b7451 + cd00499 commit 8ae1d26Copy full SHA for 8ae1d26
main.sh
@@ -21,4 +21,4 @@ else
21
done
22
fi
23
24
-(("${#SF_WARNS[@]}" > 0)) && __sf_show_warns
+[[ "${#SF_WARNS[@]}" -gt 0 ]] && __sf_show_warns
utils.sh
@@ -17,9 +17,11 @@ source_files_in() {
17
18
is_bin_in_path() {
19
if [[ -n "$ZSH_VERSION" ]]; then
20
- builtin whence -p "$1" &>/dev/null
+ builtin whence -p "$1" &>/dev/null ||
+ builtin command -v "$1" &>/dev/null
else # bash
- builtin type -P "$1" &>/dev/null
+ builtin type -P "$1" &>/dev/null ||
25
26
}
27
0 commit comments