mirror of
https://github.com/zdharma-continuum/zinit-annex-patch-dl.git
synced 2026-09-10 07:26:19 -04:00
style: consistent logging
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
4fba9d16b9
commit
ab7f3ec4bd
|
|
@ -77,13 +77,13 @@ if [[ -n ${ICE[dl]} && ${ICE[dl]} != ink=[-/[:alnum:]]* ]]; then
|
|||
|
||||
if ! .zinit-annex-patch-dl-download-file-stdout "${srcdst[1]}" >! "$tdir/$tl"; then
|
||||
if ! .zinit-annex-patch-dl-download-file-stdout "${srcdst[1]}" 1 >! "$tdir/$tl"; then
|
||||
+zinit-message "{info}[{pre}patch-dl annex{info}]{error} Failed to download the URL {glob}${srcdst[1]}{rst}"
|
||||
+zinit-message "{error}Error:{rst} {b}patch-dl{rst}: Failed to download URL {glob}${srcdst[1]}{rst}"
|
||||
ret=1
|
||||
fi
|
||||
fi
|
||||
|
||||
if (( !ret && !OPTS[opt_-q,--quiet] && ZINIT[annex-multi-flag:pull-active] == 2 )); then
|
||||
+zinit-message "{info}[{pre}patch-dl annex{info}] {file}${tl}{rst} downloaded successfully"
|
||||
+zinit-message "{pre}==>{rst} {b}patch-dl{rst}: {file}${tl}{rst} downloaded"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
|
@ -98,7 +98,7 @@ if [[ -n "${ICE[patch]}" ]]; then
|
|||
@zinit-substitute pch
|
||||
|
||||
if (( !OPTS[opt_-q,--quiet] && ZINIT[annex-multi-flag:pull-active] == 2 )); then
|
||||
+zinit-message "{info}[{pre}patch-dl annex{info}]{rst} Applying patch {pname}${pch}{rst}"
|
||||
+zinit-message "{pre}==>{rst} {b}patch-dl{rst}: Applying patch {pname}${pch}{rst}"
|
||||
fi
|
||||
|
||||
(
|
||||
|
|
|
|||
Loading…
Reference in a new issue