j-hc 49abcfa2cd update magisk module template
Former-commit-id: 4f4f7694b7725f0b2f5154be01324c8286237fe9
2022-06-30 19:32:40 +03:00

18 lines
401 B
Bash
Executable File

# Don't modify anything after this
if [ -f $INFO ]; then
while read LINE; do
if [ "$(echo -n $LINE | tail -c 1)" == "~" ]; then
continue
elif [ -f "$LINE~" ]; then
mv -f $LINE~ $LINE
else
rm -f $LINE
while true; do
LINE=$(dirname $LINE)
[ "$(ls -A $LINE 2>/dev/null)" ] && break 1 || rm -rf $LINE
done
fi
done < $INFO
rm -f $INFO
fi