@@ -101,9 +101,9 @@ function _lauch_or_install()
101101 if ! __check_for_filesystem; then
102102 echo -e " Installing hippo..........."
103103 if proot-distro install hippo; then
104- echo -e " Installation Done......\a"
104+ echo -e " Installation Done......\a\a "
105105 echo " Waiting..."
106- sleep 2
106+ sleep 4
107107 clear
108108 echo -e " Now You can launch your ubuntu 21.04 with command \e[1;32mhippo\e[0m"
109109 # echo -e "use hippo --help for more option and comming up features"
@@ -126,6 +126,21 @@ function _lauch_or_install()
126126 fi
127127}
128128
129+ function __force_uprade_hippo()
130+ {
131+ if [ ! -d " $CACHE_ROOT " ]; then
132+ mkdir " $CACHE_ROOT "
133+ fi
134+
135+ FSM_URL=" https://github.com/RandomCoderOrg/fs-manager-hippo"
136+ git clone ${FSM_URL} " ${CACHE_ROOT} /fs-manager-hippo" || die " failed to clone repo"
137+
138+ if [ -f " ${CACHE_ROOT} " /fs-manager-hippo/install.sh ]; then
139+ cd " ${CACHE_ROOT} " /fs-manager-hippo || die " failed to cd ..."
140+ bash install.sh || die " failed to install manager..."
141+ fi
142+ }
143+
129144function __help()
130145{
131146 echo -e " hippo - termux Version ${version} "
@@ -134,17 +149,20 @@ function __help()
134149 echo -e " Usage ${0} [options]"
135150 echo -e
136151 echo -e " Options:"
152+ echo -e " \e[1;34m"
137153 echo -e " --install To try installing hippo"
138154 echo -e " --help to display this message"
139155 echo -e " --enable-dbus To start terminal session with dbus enabled"
140156 echo -e " startvnc To start hippo vncserver"
141157 echo -e " stopvnc To stop hippo vncserver"
142158 echo -e " Join the community and leave at DISCORD -> $SOCIAL_PLATFORM "
159+ echo -e " \e[0m"
143160}
144161
145162if [ $# -ge 1 ]; then
146163 case " $1 " in
147164 upgrade) __upgrade;;
165+ --force-upgrade) __force_uprade_hippo;;
148166 --enable-dbus) shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap ;;
149167 " --enable-dbus startvnc" ) shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap -- startvnc ;;
150168 " --enable-dbus stopvnc" ) shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap -- stopvnc ;;
0 commit comments