Skip to content

Commit

Permalink
Always overwrite files
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 committed Feb 12, 2024
1 parent e3130bd commit 44df7ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ fi
ABI=$(/system/bin/getprop ro.product.cpu.abi)
for file in busybox magiskpolicy magiskboot magiskinit; do
[ -x "$MAGISKBIN/$file" ] || {
/system/bin/unzip -d $MAGISKBIN -j $MAGISKTMP/stub.apk "lib/$ABI/lib$file.so"
/system/bin/unzip -d $MAGISKBIN -oj $MAGISKTMP/stub.apk "lib/$ABI/lib$file.so"
mv $MAGISKBIN/lib$file.so $MAGISKBIN/$file
chmod 755 "$MAGISKBIN/$file"
}
done
for file in util_functions.sh boot_patch.sh; do
[ -x "$MAGISKBIN/$file" ] || {
/system/bin/unzip -d $MAGISKBIN -j $MAGISKTMP/stub.apk "assets/$file"
/system/bin/unzip -d $MAGISKBIN -oj $MAGISKTMP/stub.apk "assets/$file"
chmod 755 "$MAGISKBIN/$file"
}
done

0 comments on commit 44df7ca

Please sign in to comment.