Skip to content

Commit a71d313

Browse files
authored
Merge pull request #303 from DannyBen/update/command-check-function
Change dependency command checker for testability
2 parents 3896ef2 + 9683e16 commit a71d313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bashly/views/command/dependencies_filter.gtx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if dependencies
22
= view_marker
33

44
dependencies.each do |dependency, message|
5-
> if ! [[ -x "$(command -v {{ dependency }})" ]]; then
5+
> if ! command -v {{ dependency }} >/dev/null 2>&1; then
66
> printf "{{ strings[:missing_dependency] % { dependency: dependency } }}\n" >&2
77
if message and !message.empty?
88
> # shellcheck disable=SC2059

0 commit comments

Comments
 (0)