This commit is contained in:
Aidan 2025-03-07 21:16:45 -05:00
parent 1163c9e75b
commit 270d4e17d0

7
manage
View File

@ -34,8 +34,10 @@ function install_tools() {
if ! command_exists curl; then if ! command_exists curl; then
echo -e "${COLOR_RED}curl is not installed. Installing now...${COLOR_RESET}" echo -e "${COLOR_RED}curl is not installed. Installing now...${COLOR_RESET}"
if [ "$DISTRO" == "Ubuntu" ]; then if [ "$DISTRO" == "Ubuntu" ]; then
# shellcheck disable=SC2024
sudo apt-get install curl -y >> install.log sudo apt-get install curl -y >> install.log
elif [ "$DISTRO" == "Arch Linux" ]; then elif [ "$DISTRO" == "Arch Linux" ]; then
# shellcheck disable=SC2024
sudo pacman -S --noconfirm curl >> install.log sudo pacman -S --noconfirm curl >> install.log
fi fi
echo -e "\n${COLOR_GREEN}curl installed successfully.${COLOR_RESET}\n" echo -e "\n${COLOR_GREEN}curl installed successfully.${COLOR_RESET}\n"
@ -63,8 +65,10 @@ function install_tools() {
if ! command_exists nc; then if ! command_exists nc; then
echo -e "${COLOR_RED}Netcat is not installed. Installing now...${COLOR_RESET}" echo -e "${COLOR_RED}Netcat is not installed. Installing now...${COLOR_RESET}"
if [ "$DISTRO" == "Ubuntu" ]; then if [ "$DISTRO" == "Ubuntu" ]; then
# shellcheck disable=SC2024
sudo apt-get install netcat-traditional -y >> install.log sudo apt-get install netcat-traditional -y >> install.log
elif [ "$DISTRO" == "Arch Linux" ]; then elif [ "$DISTRO" == "Arch Linux" ]; then
# shellcheck disable=SC2024
sudo pacman -S --noconfirm netcat >> install.log sudo pacman -S --noconfirm netcat >> install.log
fi fi
echo -e "\n${COLOR_GREEN}Netcat installed successfully.${COLOR_RESET}\n" echo -e "\n${COLOR_GREEN}Netcat installed successfully.${COLOR_RESET}\n"
@ -75,6 +79,7 @@ function install_tools() {
# Check for lsof, and install if not found # Check for lsof, and install if not found
if ! command_exists lsof && [ "$DISTRO" == "Arch Linux" ]; then if ! command_exists lsof && [ "$DISTRO" == "Arch Linux" ]; then
echo -e "${COLOR_RED}lsof is not installed. Installing now...${COLOR_RESET}" echo -e "${COLOR_RED}lsof is not installed. Installing now...${COLOR_RESET}"
# shellcheck disable=SC2024
sudo pacman -S --noconfirm lsof >> install.log sudo pacman -S --noconfirm lsof >> install.log
echo -e "\n${COLOR_GREEN}lsof installed successfully.${COLOR_RESET}\n" echo -e "\n${COLOR_GREEN}lsof installed successfully.${COLOR_RESET}\n"
else else
@ -85,8 +90,10 @@ function install_tools() {
if ! command_exists npm; then if ! command_exists npm; then
echo -e "${COLOR_RED}NPM is not installed. Installing now...${COLOR_RESET}" echo -e "${COLOR_RED}NPM is not installed. Installing now...${COLOR_RESET}"
if [ "$DISTRO" == "Ubuntu" ]; then if [ "$DISTRO" == "Ubuntu" ]; then
# shellcheck disable=SC2024
sudo apt-get install npm -y >> install.log sudo apt-get install npm -y >> install.log
elif [ "$DISTRO" == "Arch Linux" ]; then elif [ "$DISTRO" == "Arch Linux" ]; then
# shellcheck disable=SC2024
sudo pacman -S --noconfirm npm >> install.log sudo pacman -S --noconfirm npm >> install.log
fi fi
if [ ! -f "config.json" ]; then if [ ! -f "config.json" ]; then