]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates/lxc-download.in: fix wrong if condition (use the result of the gpg command...
authorJohannes Kastl <kastl@b1-systems.de>
Tue, 30 Jun 2020 16:51:20 +0000 (18:51 +0200)
committerJohannes Kastl <kastl@b1-systems.de>
Tue, 30 Jun 2020 16:52:49 +0000 (18:52 +0200)
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
templates/lxc-download.in

index 58d063f4c2dde552855a2e3cb3689a3366198a86..f69b18fd42f7172274015287857035426bd78b04 100644 (file)
@@ -134,8 +134,8 @@ gpg_setup() {
 
   success=
   for _ in $(seq 3); do
-    if $(gpg --keyserver "${DOWNLOAD_KEYSERVER}" ${DOWNLOAD_GPG_PROXY:-} \
-      --recv-keys "${DOWNLOAD_KEYID}" >/dev/null 2>&1); then
+    if gpg --keyserver "${DOWNLOAD_KEYSERVER}" ${DOWNLOAD_GPG_PROXY:-} \
+      --recv-keys "${DOWNLOAD_KEYID}" >/dev/null 2>&1; then
       success=1
       break
     fi