From e91f2eb6f497f6e36f0968eafd45fb7e00e15862 Mon Sep 17 00:00:00 2001 From: WillyPillow Date: Sat, 4 Jul 2020 01:11:53 +0800 Subject: [PATCH] Fix shell quoting. --- qubes-rpc/qvm-template-repo-query | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qubes-rpc/qvm-template-repo-query b/qubes-rpc/qvm-template-repo-query index d764fc6..08798dd 100755 --- a/qubes-rpc/qvm-template-repo-query +++ b/qubes-rpc/qvm-template-repo-query @@ -28,12 +28,10 @@ OPTS+=("--quiet") RET=0 if [ "$1" = "query" ]; then - # shellcheck disable=SC2068 - dnf repoquery ${OPTS[@]} --qf='%{name}:%{epoch}:%{version}:%{release}:%{reponame}:%{downloadsize}:%{summary}' "$SPEC" + dnf repoquery "${OPTS[@]}" --qf='%{name}:%{epoch}:%{version}:%{release}:%{reponame}:%{downloadsize}:%{summary}' "$SPEC" RET="$?" elif [ "$1" = "download" ]; then - # shellcheck disable=SC2068 - curl -L "$(dnf download ${OPTS[@]} --url "$SPEC" | shuf -n 1)" -o - + curl -L "$(dnf download "${OPTS[@]}" --url "$SPEC" | shuf -n 1)" -o - RET="$?" fi