mirror of
https://github.com/zdharma-continuum/zinit-annex-rust.git
synced 2026-09-10 04:36:14 -04:00
*atclone-handler: Fix the 'a <- b' bug
This commit is contained in:
parent
8bc5e4cc56
commit
4da78c102e
|
|
@ -90,7 +90,7 @@ if [[ -n "${ZPLG_ICE[cargo]}" ]] {
|
|||
bin_pkg_dst=( ${(@s.->.)cargo} )
|
||||
tmpsdst=( ${(@s.<-.)bin_pkg_dst[1]} )
|
||||
if (( ${#tmpsdst} > 1 )); then
|
||||
bin_pkg_dst=( "${tmpsdst[1]}" "${tmpsdst[2]}" "${bin_pkg_dst[2]:-${bin_pkg_dst[1]#\!}}" )
|
||||
bin_pkg_dst=( "${tmpsdst[1]}" "${tmpsdst[2]}" "${bin_pkg_dst[2]:-${tmpdist[2]#\!}}" )
|
||||
else
|
||||
bin_pkg_dst=( "${tmpsdst[1]#\!}" "${tmpsdst[1]}" "${bin_pkg_dst[2]:-${bin_pkg_dst[1]#\!}}" )
|
||||
fi
|
||||
|
|
@ -136,7 +136,7 @@ if [[ -n "${ZPLG_ICE[cargo]}" ]] {
|
|||
tmpsdst=( ${(@s.<-.)bin_pkg_dst[1]} )
|
||||
tmpsdst=( "${tmpsdst[@]//((#s)[[:space:]]##|[[:space:]]##(#e))/}" )
|
||||
if (( ${#tmpsdst} > 1 )); then
|
||||
bin_pkg_dst=( "${tmpsdst[1]}" "${tmpsdst[2]}" "${bin_pkg_dst[2]:-${bin_pkg_dst[1]#\!}}" )
|
||||
bin_pkg_dst=( "${tmpsdst[1]}" "${tmpsdst[2]}" "${bin_pkg_dst[2]:-${tmpdist[2]#\!}}" )
|
||||
else
|
||||
bin_pkg_dst=( "${tmpsdst[1]#\!}" "${tmpsdst[1]}" "${bin_pkg_dst[2]:-${bin_pkg_dst[1]#\!}}" )
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue