mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:37:10 +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" && \
|
||||
(cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2)
|
||||
|
||||
if [ "$?" == "8" ]; then
|
||||
if [ "$?" != "0" ]; then
|
||||
log "fetching .ubi rootfs..."
|
||||
wget \
|
||||
-a "${LOG_FILE}" \
|
||||
|
Loading…
Reference in New Issue
Block a user