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