]> 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, 2 Sep 2015 07:47:35 +0000 (09:47 +0200)
copy&paste error

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