From 4ea0c5590ad416dc701ef922aed691fda2cc8fcd Mon Sep 17 00:00:00 2001 From: Bryan Bennett Date: Wed, 31 Jan 2018 10:21:52 -0500 Subject: [PATCH] Add additional glob for matching exact binaries in gh-r downloads --- base/utils/releases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/base/utils/releases.zsh b/base/utils/releases.zsh index 88450c38..a446f9c7 100644 --- a/base/utils/releases.zsh +++ b/base/utils/releases.zsh @@ -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}') )