Skip to content

Commit a2e508f

Browse files
titles and spinners
1 parent 11982cc commit a2e508f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

udroid/src/udroid.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ install() {
6767
# 5) execute fixes file
6868

6969
local arg=$1
70-
70+
TITLE "> INSTALL $arg"
7171
# parse the arg for suite and varient and get name,link
7272
parser $1 "online"
7373

@@ -248,9 +248,11 @@ login() {
248248
done
249249

250250
if [[ -z $_name ]]; then
251+
TITLE "> LOGIN $arg"
251252
parser $arg "offline"
252253
distro=$name
253254
else
255+
TITLE "> LOGIN $_name"
254256
distro=$_name
255257
fi
256258
root_fs_path=$path/$distro
@@ -666,8 +668,10 @@ remove() {
666668

667669
if ! $reset; then
668670
TITLE "> REMOVE $arg($distro)"
671+
spinner="pulse"
669672
else
670673
TITLE "> RESET $arg($distro)"
674+
spinner="jump"
671675
fi
672676

673677
if [[ -z $_name ]]; then
@@ -681,7 +685,7 @@ remove() {
681685
[[ -z $distro ]] && echo "ERROR: distro not specified" && exit 1
682686
[[ ! -d $root_fs_path ]] && echo "ERROR: distro ($distro) not found or installed" && exit 1
683687

684-
g_spin "dot" \
688+
g_spin "$spinner" \
685689
"Removing $arg($distro)" \
686690
bash proot-utils/proot-uninstall-suite.sh "$root_fs_path"
687691

0 commit comments

Comments
 (0)