mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: ziextract execs discovery regex (#410)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
9987d5c781
commit
105b38a195
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue