Fixed arithmetic syntax error in decompress_ramdisk

This commit is contained in:
newbit1
2022-12-05 22:47:24 +01:00
parent 84669a136e
commit c7583aa94e
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -338,6 +338,8 @@ rootAVD.bat %LOCALAPPDATA%\Android\Sdk\system-images\android-31\google_apis_play
</details>
### Change Logs
#### [December 2022]
* [rootAVD.sh] - Fixed arithmetic syntax error in decompress_ramdisk
#### [November 2022]
* [General] - Bug fixes
* [General] - Updated to Magisk Stable Version 25.2
+3 -2
View File
@@ -1246,7 +1246,7 @@ decompress_ramdisk(){
if [ "$DERIVATE" == "BlueStacks" ]; then
$RAMDISK_GZ && gzip -fdk $RDF$ENDG
COUNT=`strings -t d $RDF | grep TRAILER\!\! | wc -l`
COUNT=`strings -t d $RDF | grep TRAILER | wc -l`
REPACKRAMDISK=1
fi
@@ -1260,7 +1260,8 @@ decompress_ramdisk(){
OBS=4096
OF=$TMP/temp$ENDG
RAMDISKS=`strings -t d $RDF | grep TRAILER`
RAMDISKS=`strings -t d $RDF | grep TRAILER | sed 's|TRAILER.*|TRAILER|'`
for OFFSET in $RAMDISKS; do
# calculate offset to next archive