Skip to content

Commit

Permalink
fix: ziextract execs discovery regex (#410)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster authored Nov 5, 2022
1 parent 9987d5c commit 105b38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zinit-install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,8 @@ ziextract() {
execs=( **/*~(._zinit(|/*)|.git(|/*)|.svn(|/*)|.hg(|/*)|._backup(|/*))(DN-.) )
if [[ ${#execs} -gt 0 && -n $execs ]] {
execs=( ${(@f)"$( file ${execs[@]} )"} )
execs=( "${(M)execs[@]:#[^:]##:*executable*}" )
execs=( "${execs[@]/(#b)([^:]##):*/${match[1]}}" )
execs=( "${(M)execs[@]:#[^(:]##:*executable*}" )
execs=( "${execs[@]/(#b)([^(:]##):*/${match[1]}}" )
}

builtin print -rl -- ${execs[@]} >! ${TMPDIR:-/tmp}/zinit-execs.$$.lst
Expand Down

0 comments on commit 105b38a

Please sign in to comment.