mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-15 16:01:25 +00:00
Sync
This commit is contained in:
+4
-2
@@ -8,11 +8,13 @@ echo "Downloading ${BOOT} as boot image..."
|
||||
|
||||
# Check if running with interactive TTY or redirected to docker log
|
||||
if [ -t 1 ]; then
|
||||
wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress --progress=bar:noscroll
|
||||
PROGRESS="--progress=bar:noscroll"
|
||||
else
|
||||
wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress --progress=dot:giga
|
||||
PROGRESS="--progress=dot:giga"
|
||||
fi
|
||||
|
||||
wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress "$PROGRESS"
|
||||
|
||||
[ ! -f "$TMP" ] && echo "Failed to download ${BOOT}" && exit 61
|
||||
|
||||
SIZE=$(stat -c%s "$TMP")
|
||||
|
||||
Reference in New Issue
Block a user