Skip to content

Commit 6fe223c

Browse files
show some msgs while upgrade
1 parent ea7f273 commit 6fe223c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/udroid/udroid.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ remove() {
163163
}
164164

165165
upgrade() {
166+
shout "Upgrade.."
166167
url_host="https://raw.githubusercontent.com"
167168
url_org="/RandomCoderOrg"
168169
repo="/fs-manager-udroid"
@@ -175,8 +176,13 @@ upgrade() {
175176

176177
path="/$BRANCH/scripts/udroid/udroid.sh"
177178
url="$url_host$url_org$repo$path"
178-
179-
download "$url" "$TERMUX/usr/bin/udroid"
179+
lshout "Sync tool with GitHub..."
180+
download "$url" "$TERMUX/usr/bin/udroid" || {
181+
lwarn "failed to sync tool with GitHub"
182+
exit 1
183+
}
184+
chmod +x "$TERMUX/usr/bin/udroid"
185+
lshout "Sync tool with GitHub...done"
180186
}
181187

182188
is_installed() {

0 commit comments

Comments
 (0)