fixing version code
This commit is contained in:
parent
972ee0ae9f
commit
ee10660dcb
1 changed files with 11 additions and 1 deletions
10
downr1n.sh
10
downr1n.sh
|
|
@ -805,6 +805,16 @@ if [ "$downgrade" = "1" ] || [ "$jailbreak" = "1" ]; then
|
|||
|
||||
fi
|
||||
|
||||
version_code=""
|
||||
|
||||
if [ "$downgrade" = "1" ]; then
|
||||
if [ "$os" = 'Darwin' ]; then
|
||||
version_code=$(/usr/bin/plutil -extract "ProductBuildVersion" xml1 -o - work/BuildManifest.plist | grep '<string>' |cut -d\> -f2 |cut -d\< -f1 | head -1)
|
||||
else
|
||||
version_code=$("$dir"/PlistBuddy work/BuildManifest.plist -c "Print ProductBuildVersion" | sed 's/"//g')
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [ "$downgrade" = "1" ] || [ "$jailbreak" = "1" ]; then
|
||||
# extracting ipsw
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue