mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
*install: Improve the file downloadings
This commit is contained in:
parent
45a908ec41
commit
16c08431a6
|
|
@ -134,7 +134,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
|
|||
|
||||
if [[ $profile != ./* ]] {
|
||||
if { ! .zinit-download-file-stdout $URL 0 1 2>/dev/null > $tmpfile } {
|
||||
rm -f $tmpfile; .zinit-download-file-stdout $URL 1 1 2>/dev/null > $tmpfile
|
||||
rm -f $tmpfile; .zinit-download-file-stdout $URL 1 1 2>/dev/null >1 $tmpfile
|
||||
}
|
||||
} else {
|
||||
tmpfile=${profile%:*}
|
||||
|
|
@ -379,6 +379,8 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
|
|||
}
|
||||
if .zinit-download-file-stdout "$url.sig" 2>/dev/null >! "${REPLY:t}.sig"; then
|
||||
:
|
||||
else
|
||||
command rm -f "${REPLY:t}.sig"
|
||||
fi
|
||||
|
||||
command mkdir -p ._zinit
|
||||
|
|
|
|||
Loading…
Reference in a new issue