From a5abc5f35c500efe88eeb8ba457d9c052abc57b9 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Mon, 9 May 2022 23:52:51 +0700 Subject: [PATCH] Pull proxytext before launch --- Apps/proxytext/proxytext-wrapper.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Apps/proxytext/proxytext-wrapper.sh b/Apps/proxytext/proxytext-wrapper.sh index f705fb0..0a027ba 100755 --- a/Apps/proxytext/proxytext-wrapper.sh +++ b/Apps/proxytext/proxytext-wrapper.sh @@ -24,12 +24,12 @@ function proot_install_proxytext () { function proot_launch_proxytext () { echo "Launching proxytext." cd proxytext + git pull PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium yarn start - exit } function install_dependencies () { - echo "Checking dependencies..." + echo "Checking dependencies." declare -a dependencies=("proot-distro") for i in "${dependencies[@]}" do @@ -41,13 +41,13 @@ function install_dependencies () { } function install_dependencies_debian () { - echo "Installing dependencies in Debian proot..." + echo "Installing dependencies in Debian proot." proot-distro login debian --termux-home -- bash ./proxytext-wrapper.sh --proot --install-dependencies echo "Done." } function install_debian() { - echo "Installing debian..." + echo "Installing Debian proot." proot-distro install debian } @@ -84,5 +84,4 @@ install_dependencies install_debian install_dependencies_debian [ ! -d "./proxytext" ] && install_proxytext -echo "Installation completed." start_proxytext