Blame SOURCES/0334-livenet-livenetroot.sh-fixed-error-condition.patch

64b87c
From b813b1b3064d4951c5403bb0f96480de9a355d8e Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Wed, 2 Sep 2015 09:47:35 +0200
64b87c
Subject: [PATCH] livenet/livenetroot.sh: fixed error condition
64b87c
64b87c
copy&paste error
64b87c
---
64b87c
 modules.d/90livenet/livenetroot.sh | 2 +-
64b87c
 1 file changed, 1 insertion(+), 1 deletion(-)
64b87c
64b87c
diff --git a/modules.d/90livenet/livenetroot.sh b/modules.d/90livenet/livenetroot.sh
64b87c
index 2e36ee9..b7592bc 100755
64b87c
--- a/modules.d/90livenet/livenetroot.sh
64b87c
+++ b/modules.d/90livenet/livenetroot.sh
64b87c
@@ -15,7 +15,7 @@ liveurl="${netroot#livenet:}"
64b87c
 info "fetching $liveurl"
64b87c
 imgfile=$(fetch_url "$liveurl")
64b87c
 
64b87c
-if [ $? = 0 ]; then
64b87c
+if [ $? != 0 ]; then
64b87c
 	warn "failed to download live image: error $?"
64b87c
 	exit 1
64b87c
 fi