Unverified Commit 2e8b5275 by Johannes Kastl Committed by Christian Brauner

templates/lxc-download.in: fix wrong if condition (use the result of the gpg…

templates/lxc-download.in: fix wrong if condition (use the result of the gpg command, not the result when executing the result of the gpg command) Signed-off-by: 's avatarJohannes Kastl <kastl@b1-systems.de>
parent 3e0175ef
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment