Skip to content

Commit

Permalink
fix: use $MACHTYPE instead of arch command (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschmitt authored Oct 31, 2023
1 parent e18f9a7 commit bcf70e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zinit-install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
local junk="(md5|sig|asc|txt|vsix|sum|sha256*|pkg|.(apk|deb|json|rpm|sh(#e)))"
filtered=( ${list[@]:#(#i)*${~junk}*} ) && (( $#filtered > 0 )) && list=( ${filtered[@]} )

local -a array=( $(print -rm "*($(arch)|${VENDOR}|)*~^*(${parts[1]}|${(L)$(uname)})*" $list[@]) )
local -a array=( $(print -rm "*(${MACHTYPE}|${VENDOR}|)*~^*(${parts[1]}|${(L)$(uname)})*" $list[@]) )
(( ${#array} > 0 )) && list=( ${array[@]} )
+zi-log -- "{dbg} filtered ${#filtered} to ${#array} release assets"

Expand Down

0 comments on commit bcf70e8

Please sign in to comment.