]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
livenet/livenetroot.sh: fixed error condition
authorHarald Hoyer <harald@redhat.com>
Wed, 2 Sep 2015 07:47:35 +0000 (09:47 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 15:19:56 +0000 (16:19 +0100)
copy&paste error

(cherry picked from commit b813b1b3064d4951c5403bb0f96480de9a355d8e)

modules.d/90livenet/livenetroot.sh

index 2e36ee98a6db3f64f9dc2d847cc0c3806eba342d..b7592bc0a12bf418896854c429edebd136ebcf61 100755 (executable)
@@ -15,7 +15,7 @@ liveurl="${netroot#livenet:}"
 info "fetching $liveurl"
 imgfile=$(fetch_url "$liveurl")
 
-if [ $? = 0 ]; then
+if [ $? != 0 ]; then
        warn "failed to download live image: error $?"
        exit 1
 fi