change the way of check wget error, which is more common

This commit is contained in:
Xiangfu Liu
2011-02-11 05:24:57 -08:00
parent e40bc0959e
commit f74189029e
+1 -1
View File
@@ -125,7 +125,7 @@ if [ "$PROTOCOL" == "http" ]; then
"${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \
(cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2)
if [ "$?" == "8" ]; then
if [ "$?" != "0" ]; then
log "fetching .ubi rootfs..."
wget \
-a "${LOG_FILE}" \