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:
parent
011732f7ce
commit
d3e685ddf9
@ -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}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user