mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
CommonInstaller: simplify code
This commit is contained in:
parent
45a58647a8
commit
bfa7a4cef9
@ -1623,44 +1623,28 @@ check_cfg_setup () {
|
||||
# check whether '.nanodroid-apps' is up to date
|
||||
check_cfg_apps () {
|
||||
# <= 16.3 has KeePass DX instead of KeePassDroid, migrate
|
||||
if grep -q KeePassDroid "${cfg_apps}"; then
|
||||
sed -e 's/KeePassDroid/KeePassDX/g' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q KeePassDroid "${cfg_apps}" && sed -e 's/KeePassDroid/KeePassDX/g' -i "${cfg_apps}"
|
||||
|
||||
# <= 17.0~beta1 && <= 17.2~beta1 has Bucket (LibreSubtratum) instead of Substratum, migrate
|
||||
if grep -q Bucket "${cfg_apps}"; then
|
||||
sed -e 's/Bucket/Substratum/g' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q Bucket "${cfg_apps}" && sed -e 's/Bucket/Substratum/g' -i "${cfg_apps}"
|
||||
|
||||
# <= 18.1 has Orfox instead of TorBrowser, migrate
|
||||
if grep -q Orfox "${cfg_apps}"; then
|
||||
sed -e 's/Orfox/TorBrowser/g' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q Orfox "${cfg_apps}" && sed -e 's/Orfox/TorBrowser/g' -i "${cfg_apps}"
|
||||
|
||||
# <= 18.4 has Adaway instead of Blockada, migrate
|
||||
if grep -q Adaway "${cfg_apps}"; then
|
||||
sed -e 's/Adaway/Blokada/g' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q Adaway "${cfg_apps}" && sed -e 's/Adaway/Blokada/g' -i "${cfg_apps}"
|
||||
|
||||
# >= 20.7.92 no longer ships YahooWeatherProvider, remove
|
||||
if grep -q YahooWeatherProvider "${cfg_apps}"; then
|
||||
sed -e '/YahooWeatherProvider/d' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q YahooWeatherProvider "${cfg_apps}" && sed -e '/YahooWeatherProvider/d' -i "${cfg_apps}"
|
||||
|
||||
# >= 20.8.90 no longer ships OmniJAWS, remove
|
||||
if grep -q OmniJAWS "${cfg_apps}"; then
|
||||
sed -e '/OmniJAWS/d' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q OmniJAWS "${cfg_apps}" && sed -e '/OmniJAWS/d' -i "${cfg_apps}"
|
||||
|
||||
# >= 21.0.90 has Alarmio instead of OmniClock, migrate
|
||||
if grep -q OmniClock "${cfg_apps}"; then
|
||||
sed -e 's/OmniClock/Alarmio/g' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q OmniClock "${cfg_apps}" && sed -e 's/OmniClock/Alarmio/g' -i "${cfg_apps}"
|
||||
|
||||
# >= 21.0.90 no longer ships OpenWeatherMapProvider, remove
|
||||
if grep -q OpenWeatherMapProvider "${cfg_apps}"; then
|
||||
sed -e '/OpenWeatherMapProvider/d' -i "${cfg_apps}"
|
||||
fi
|
||||
grep -q OpenWeatherMapProvider "${cfg_apps}" && sed -e '/OpenWeatherMapProvider/d' -i "${cfg_apps}"
|
||||
|
||||
# >= 21.0.90 has Lightning instead of Privacy Browser, migrate
|
||||
grep -q Lightning "${cfg_apps}" && sed -e 's/Lightning/PrivacyBrowser/g' -i "${cfg_apps}"
|
||||
|
Loading…
Reference in New Issue
Block a user