浏览代码

Fix shell quoting.

WillyPillow 3 年之前
父节点
当前提交
e91f2eb6f4
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      qubes-rpc/qvm-template-repo-query

+ 2 - 4
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