From 58b42760031e13fe05422c37563797f0e3e5e1db Mon Sep 17 00:00:00 2001 From: mit0za Date: Tue, 14 Mar 2023 17:08:02 +1030 Subject: [PATCH 1/2] removed yay because we don't need it and fixed the install script for arch based distro --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 install.sh diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 3c63fc1..12afeee --- a/install.sh +++ b/install.sh @@ -71,7 +71,7 @@ if [[ $choice =~ ^[1-2]+$ ]]; then sudo apt-get install -y git python3-pip figlet boxes php curl xdotool wget -y ; elif [[ $choice == 2 ]]; then sudo pacman -Suy -y - sudo pacman -S python-pip-19.1.1-1 yay -y + sudo pacman -S python-pip -y else exit fi @@ -93,7 +93,7 @@ if [[ $choice =~ ^[1-2]+$ ]]; then if sudo git clone https://github.com/Z4nzu/hackingtool.git $install_dir; then # Install virtual environment echo -e "${YELLOW}[*] Installing Virtual Environment...${NC}" - sudo apt install python3-venv -y + #sudo apt install python3-venv -y echo ""; # Create a virtual environment for the tool echo -e "${YELLOW}[*] Creating virtual environment..." @@ -108,7 +108,8 @@ if [[ $choice =~ ^[1-2]+$ ]]; then sudo apt install figlet -y elif [[ $choice == 2 ]]; then 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 fi # Create a shell script to launch the tool From e1463b4dfad8e6242450ffa26917d39aef9ce57f Mon Sep 17 00:00:00 2001 From: mit0za Date: Tue, 14 Mar 2023 17:26:59 +1030 Subject: [PATCH 2/2] removed yay and fixed the install script for arch based distro --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 12afeee..844f4e9 100755 --- a/install.sh +++ b/install.sh @@ -93,7 +93,11 @@ if [[ $choice =~ ^[1-2]+$ ]]; then if sudo git clone https://github.com/Z4nzu/hackingtool.git $install_dir; then # Install virtual environment echo -e "${YELLOW}[*] Installing Virtual Environment...${NC}" - #sudo apt install python3-venv -y + if [[ $choice == 1 ]]; then + sudo apt install python3-venv -y + elif [[ $choice == 2 ]]; then + echo "Python 3.3+ comes with a module called venv."; + fi echo ""; # Create a virtual environment for the tool echo -e "${YELLOW}[*] Creating virtual environment..."