Skip to content

Commit 9d3a8e7

Browse files
fixing
-> made installer kind of understandable
1 parent c5d4ed0 commit 9d3a8e7

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

install.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# * Script V01
55
#
66

7+
version="01"
8+
79
# * Deafault color is Blue
810
RST="\e[0m"
911
RED="\e[1;31m" # *This is bold
@@ -28,8 +30,14 @@ SCRIPT_DIR="${TPREFIX}/usr/etc/proot-distro"
2830
HIPPO_REPO_URL="https://github.com/RandomCoderOrg/ubuntu-on-android"
2931
FSM_URL="https://github.com/RandomCoderOrg/fs-manager-hippo"
3032

31-
die () { echo -e "${RED}Error ${*}${RST}";exit 1 ;:;}
32-
shout () { echo -e "${DC}////////";echo -e "${*}";echo -e "////////${RST}";:; }
33+
die () { echo -e "${RED}Error ${*}${RST}";exit 1 ;:;}
34+
warn () { echo -e "${RED}Error ${*}${RST}";:;}
35+
shout () { echo -e "${DC}-----";echo -e "${*}";echo -e "-----${RST}";:; }
36+
lshout () { echo -e "${DC}";echo -e "${*}";echo -e "${RST}";:; }
37+
38+
39+
shout "\e[1;32 Hippo Installer v${version}"
40+
sleep 2
3341

3442
#
3543
# * die function exits program
@@ -46,13 +54,15 @@ function setup_and_clone()
4654
apt install git -y || {
4755
die "Git installation failed"
4856
}
57+
lshout "Done..."
4958
fi
5059

5160
if ! command -v pulseaudio >> /dev/null; then
5261
shout "Installing pulseaudio..."
5362
apt install pulseaudio -y || {
5463
die "pulseaudio installation failed"
5564
}
65+
lshout "Done..."
5666
fi
5767

5868
if ! command -v pv >> /dev/null; then
@@ -63,6 +73,7 @@ function setup_and_clone()
6373
if [ -d "${CACHE_ROOT}" ]; then
6474
shout "Removing old cache......."
6575
rm -rf "${CACHE_ROOT:?}/"*
76+
lshout "Done..."
6677
fi
6778

6879
if [ -n "${BRANCH}" ]; then
@@ -72,6 +83,7 @@ function setup_and_clone()
7283
git clone ${HIPPO_REPO_URL} "${CACHE_ROOT}/ubuntu-on-android" || die "failed to clone repo"
7384
git clone ${FSM_URL} "${CACHE_ROOT}/fs-manager-hippo" || die "failed to clone repo"
7485
fi
86+
lshout "Done..."
7587

7688
install
7789
}
@@ -81,7 +93,7 @@ function install()
8193
####
8294
# * Step 1
8395

84-
shout "setting up implant..."
96+
shout "setting up proot-distro hippo implant..."
8597

8698
sleep 3
8799

0 commit comments

Comments
 (0)