2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

nanodroid-overlay: one more fix

This commit is contained in:
Christopher Roy Bratusek 2020-10-10 08:25:12 +02:00
parent 35ee26f71d
commit 9e1b637be6

View File

@ -75,11 +75,11 @@ overrides_add_intern () {
if [ "${MODE}" = "MAGISK" ]; then
echo " creating overlay: ${app}"
mkdir -p "${OVERLAY_PATH}/system/${sysdir}/${app}"
touch "${OVERLAY_PATH}/system/${sysdir}/${app}/.replace"
mkdir -p "${OVERLAY_PATH}/${sysdir}/${app}"
touch "${OVERLAY_PATH}/${sysdir}/${app}/.replace"
else
echo " removing app: ${app}"
rm -rf "/system/${sysdir}/${app}"
rm -rf "${sysdir}/${app}"
fi
grep -q "^${app}$" "${config}" 2>/dev/null || echo "${app}" >> "${config}"
@ -103,7 +103,7 @@ overrides_remove_intern () {
if [ "${MODE}" = "MAGISK" ]; then
echo " removing overlay: ${app}"
rm -rf "${OVERLAY_PATH}/system/${sysdir}/${app}"
rm -rf "${OVERLAY_PATH}/${sysdir}/${app}"
else
echo " overrides_remove() does nothing in System Mode!"
fi