We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 583eef9 commit a57783eCopy full SHA for a57783e
1 file changed
app/src/main/assets/home/bin/repack_super
@@ -18,7 +18,7 @@ show_help() {
18
}
19
20
INPUT=""; MIMGPA=""; SUPGRUP=""; SAIZESUP="";
21
-DANGIMG=""; TYPEIMG=""; show_help='';
+DANGIMG=""; TYPEIMG="";
22
if [[ $# -eq 0 || "$1" != -* ]]; then
23
show_help
24
fi
@@ -63,7 +63,7 @@ for i in $MIMGPA; do
63
i1=$(echo "$i" | sed 's/.img//g')
64
i2=$(echo "$i" | sed -e 's/_a.img//g' -e 's/_b.img//g' -e 's/.img//g')
65
info=$(checktype "$INPUT/$i1.img")
66
-p_size=$(( ($(stat -c %s "$INPUT/$i1.img") + 4095) / 4096 * 4096 ))
+p_size=$(stat -c %s "$INPUT/$i1.img")
67
[ $info == "sparse" ] && simg2img "$INPUT/$i1.img"
68
[ $TYPEIMG = "A" ] && argvs+="--partition ${i2}:readonly:$p_size:${SUPGRUP} --image ${i2}=$i1.img "
69
if [ $TYPEIMG == "AB" ] || [ $TYPEIMG == "VAB" ];then
0 commit comments