Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
samsesh
GitHub Repository: samsesh/SocialBox-Termux
Path: blob/master/instainsane/install.sh
4326 views
1
#!/bin/bash
2
#Author: github.com/thelinuxchoice
3
#Instagram: @thelinuxchoice
4
trap 'echo exiting cleanly...; exit 1;' SIGINT SIGTSTP
5
6
checkroot() {
7
8
#if [[ "$(id -u)" -ne 0 ]]; then
9
printf "\e[1;77mWelcome!\n\e[0m"
10
# exit 1
11
#fi
12
13
}
14
15
checkroot
16
17
(trap '' SIGINT SIGTSTP && command -v tor > /dev/null 2>&1 || { printf >&2 "\e[1;92mInstalling TOR, please wait...\n\e[0m"; apt-get update > /dev/null && apt-get -y install tor > /dev/null || printf "\e[1;91mTor Not installed.\n\e[0m"; }) & wait $!
18
19
(trap '' SIGINT SIGTSTP && command -v openssl > /dev/null 2>&1 || { printf >&2 "\e[1;92mInstalling openssl, please wait...\n\e[0m"; apt-get update > /dev/null && apt-get -y install openssl > /dev/null || printf "\e[1;91mOpenssl Not installed.\n\e[0m"; }) & wait $!
20
21
(trap '' SIGINT SIGTSTP && command -v curl > /dev/null 2>&1 || { printf >&2 "\e[1;92mInstalling cURL, please wait...\n\e[0m"; apt-get update > /dev/null && apt-get -y install curl > /dev/null || printf "\e[1;91mCurl Not installed.\n\e[0m"; }) & wait $!
22
23
printf "\e[1;92mAll Requires are installed!\n\e[0m"
24
25
26