Skip to content

Commit 1af0c66

Browse files
remove old package if exits
1 parent 0f2561f commit 1af0c66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/udroid/udroid.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ upgrade() {
216216
path="/$BRANCH/scripts/udroid/udroid.sh"
217217
url="$url_host$url_org$repo$path"
218218
lshout "Sync tool with GitHub..."
219+
if [ -f "$TERMUX/usr/bin/udroid" ]; then
220+
rm -rf "$TERMUX/usr/bin/udroid"
221+
fi
222+
219223
download "$url" "$TERMUX/usr/bin/udroid" || {
220224
lwarn "failed to sync tool with GitHub"
221225
exit 1

0 commit comments

Comments
 (0)