From: Harald Hoyer Date: Wed, 2 Sep 2015 07:47:35 +0000 (+0200) Subject: livenet/livenetroot.sh: fixed error condition X-Git-Tag: 044~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d47178e0ddccbecfbf144348da24c1a3be32da2;p=thirdparty%2Fdracut.git livenet/livenetroot.sh: fixed error condition copy&paste error (cherry picked from commit b813b1b3064d4951c5403bb0f96480de9a355d8e) --- diff --git a/modules.d/90livenet/livenetroot.sh b/modules.d/90livenet/livenetroot.sh index 2e36ee98a..b7592bc0a 100755 --- a/modules.d/90livenet/livenetroot.sh +++ b/modules.d/90livenet/livenetroot.sh @@ -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