qubes.Template*: Invoke curl with --silent.

This commit is contained in:
WillyPillow 2020-07-29 19:36:12 +08:00
parent 686d0d3c12
commit 9bedf50786

View File

@ -31,7 +31,7 @@ if [ "$1" = "query" ]; then
dnf repoquery "${OPTS[@]}" --qf='%{name}|%{epoch}|%{version}|%{release}|%{reponame}|%{downloadsize}|%{buildtime}|%{license}|%{url}|%{summary}|%{description}|' "$SPEC"
RET="$?"
elif [ "$1" = "download" ]; then
curl -L "$(dnf download "${OPTS[@]}" --url "$SPEC" | shuf -n 1)" -o -
curl --silent -L "$(dnf download "${OPTS[@]}" --url "$SPEC" | shuf -n 1)" -o -
RET="$?"
fi