Don't use wildcard in finding bbfw

This commit is contained in:
LukeeGD 2020-11-16 21:00:19 +08:00
parent 7349895d2b
commit 7fadc9f9c7

View File

@ -532,14 +532,14 @@ function Downgrade {
else else
if [[ $A7Device == 1 ]]; then if [[ $A7Device == 1 ]]; then
cp $IPSW/Firmware/$Baseband . cp $IPSW/Firmware/$Baseband .
elif [ ! -e saved/$ProductType/*.bbfw ]; then elif [ ! -e saved/$ProductType/$Baseband ]; then
Log "Downloading baseband..." Log "Downloading baseband..."
$partialzip $BasebandURL Firmware/$Baseband $Baseband $partialzip $BasebandURL Firmware/$Baseband $Baseband
$partialzip $BasebandURL BuildManifest.plist BuildManifest.plist $partialzip $BasebandURL BuildManifest.plist BuildManifest.plist
mkdir -p saved/$ProductType 2>/dev/null mkdir -p saved/$ProductType 2>/dev/null
cp $Baseband BuildManifest.plist saved/$ProductType cp $Baseband BuildManifest.plist saved/$ProductType
else else
cp saved/$ProductType/*.bbfw saved/$ProductType/BuildManifest.plist . cp saved/$ProductType/$Baseband saved/$ProductType/BuildManifest.plist .
fi fi
BasebandSHA1L=$(shasum $Baseband | awk '{print $1}') BasebandSHA1L=$(shasum $Baseband | awk '{print $1}')
Log "Proceeding to futurerestore..." Log "Proceeding to futurerestore..."