removed yay because we don't need it and fixed the install script for arch based distro

This commit is contained in:
mit0za 2023-03-14 17:08:02 +10:30
parent b2cf73c8f4
commit 58b4276003

7
install.sh Normal file → Executable file
View File

@ -71,7 +71,7 @@ if [[ $choice =~ ^[1-2]+$ ]]; then
sudo apt-get install -y git python3-pip figlet boxes php curl xdotool wget -y ; sudo apt-get install -y git python3-pip figlet boxes php curl xdotool wget -y ;
elif [[ $choice == 2 ]]; then elif [[ $choice == 2 ]]; then
sudo pacman -Suy -y sudo pacman -Suy -y
sudo pacman -S python-pip-19.1.1-1 yay -y sudo pacman -S python-pip -y
else else
exit exit
fi fi
@ -93,7 +93,7 @@ if [[ $choice =~ ^[1-2]+$ ]]; then
if sudo git clone https://github.com/Z4nzu/hackingtool.git $install_dir; then if sudo git clone https://github.com/Z4nzu/hackingtool.git $install_dir; then
# Install virtual environment # Install virtual environment
echo -e "${YELLOW}[*] Installing Virtual Environment...${NC}" echo -e "${YELLOW}[*] Installing Virtual Environment...${NC}"
sudo apt install python3-venv -y #sudo apt install python3-venv -y
echo ""; echo "";
# Create a virtual environment for the tool # Create a virtual environment for the tool
echo -e "${YELLOW}[*] Creating virtual environment..." echo -e "${YELLOW}[*] Creating virtual environment..."
@ -108,7 +108,8 @@ if [[ $choice =~ ^[1-2]+$ ]]; then
sudo apt install figlet -y sudo apt install figlet -y
elif [[ $choice == 2 ]]; then elif [[ $choice == 2 ]]; then
pip3 install -r $install_dir/requirements.txt pip3 install -r $install_dir/requirements.txt
yay -S boxes --noconfirm sudo -u $SUDO_USER git clone https://aur.archlinux.org/boxes.git && cd boxes
sudo -u $SUDO_USER makepkg -si
sudo pacman -S figlet -y sudo pacman -S figlet -y
fi fi
# Create a shell script to launch the tool # Create a shell script to launch the tool