Skip to content

Commit c3be1c8

Browse files
add option to redownload plugins
1 parent b269b61 commit c3be1c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/udroid/udroid.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ D_SCRIPTS="${TERMUX}/usr/etc/proot-distro"
55
D_INSTALLED_ROOTFS="${TERMUX}/usr/var/lib/proot-distro/installed-rootfs"
66
D_CACHCE="${HOME}/.udroid-cache-root"
77
LOGIN_CACHE_FILE="${D_CACHCE}/login_rec.cache"
8+
PLUGIN_REDOWNLOAD=false
89

910
_c_magneta="\e[95m"
1011
_c_green="\e[32m"
@@ -173,6 +174,11 @@ _install() {
173174
fi
174175

175176
shout "Installing $final_suite"
177+
if $PLUGIN_REDOWNLOAD; then
178+
imsg "trying to remove plugin.."
179+
rm -rf "${D_SCRIPTS}/${final_suite}.sh"
180+
fi
181+
176182
if [ ! -f "${D_SCRIPTS}/${final_suite}.sh" ]; then
177183
download "${plugin_location}/${final_suite}.sh" $local_target
178184
fi
@@ -285,6 +291,10 @@ while [ $# -gt 0 ]; do
285291
_SUITE="$1"
286292
shift
287293
;;
294+
--reinstall-plugin)
295+
PLUGIN_REDOWNLOAD=true
296+
shift
297+
;;
288298
-l)
289299
shift
290300
_login $*

0 commit comments

Comments
 (0)