Skip to content

Commit

Permalink
Add additional glob for matching exact binaries in gh-r downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenne10 authored and Bryan Bennett committed Jan 31, 2018
1 parent 15a5908 commit 4ea0c55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/utils/releases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ __zplug::utils::releases::index()

# TODO: more strictly
binaries=()
binaries+=(**/$cmd(N-.)) # contains files named exactly $cmd
binaries+=(**/*$cmd*(N-.)) # contains $cmd name files
binaries+=(**/*(N-*)) # contains executable files
binaries+=( $(file **/*(N-.) | awk -F: '$2 ~ /executable/{print $1}') )
Expand Down

0 comments on commit 4ea0c55

Please sign in to comment.