diff --git a/dump.sh b/dump.sh index 91a9ebd..9697437 100755 --- a/dump.sh +++ b/dump.sh @@ -2,7 +2,7 @@ set -ex # Extract full update -aria2c -x5 $1 -o ota.zip +aria2c -x5 "$1" -o ota.zip unzip ota.zip payload.bin mv payload.bin payload_working.bin TAG="`unzip -p ota.zip payload_properties.txt | grep ^POST_OTA_VERSION= | cut -b 18-`" @@ -16,7 +16,7 @@ mkdir ota # Apply incrementals for i in ${@:2}; do - aria2c -x5 $i -o ota.zip + aria2c -x5 "$i" -o ota.zip unzip ota.zip payload.bin wait mv payload.bin payload_working.bin