1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 16:43:09 +02:00

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

This commit is contained in:
Xiangfu Liu 2010-11-25 22:01:04 +08:00
parent 011732f7ce
commit d3e685ddf9

View File

@ -125,7 +125,7 @@ if [ "$PROTOCOL" == "http" ]; then
"${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \ "${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \
(cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2) (cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2)
if [ "$?" == "8" ]; then if [ "$?" != "0" ]; then
log "fetching .ubi rootfs..." log "fetching .ubi rootfs..."
wget \ wget \
-a "${LOG_FILE}" \ -a "${LOG_FILE}" \