Loading .github/workflows/test_install.yml 0 → 100644 +26 −0 Original line number Diff line number Diff line name: test_install on: pull_request: branches: [master] push: branches: [master] jobs: test_install: runs-on: ubuntu-latest env: TERM: "linux" steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: 3.x cache: 'pip' - run: pip install --upgrade pip - run: pwd && ls -hal # How can we pipe in responses to `read` prompts? #- run: echo -e "\n1\n1\n1\n" | sudo ./install.sh - run: sudo ./install.sh 1 - run: pwd && ls -hal - run: echo -e "1\n/home/runner/work/hackingtool/hackingtool\n" | hackingtool || true - run: pwd && ls -hal hackingtool.py +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class AllTools(HackingToolsCollection): if __name__ == "__main__": try: if system() == 'Linux': fpath = "/home/hackingtoolpath.txt" fpath = os.path.expanduser("~/hackingtoolpath.txt") if not os.path.exists(fpath): os.system('clear') # run.menu() Loading install.sh +4 −2 Original line number Diff line number Diff line Loading @@ -50,8 +50,10 @@ echo -e "${WHITE} [2] Arch Linux (pacman)" # added arch linux suppo echo -e "${WHITE} [0] Exit " echo -e "${COLOR}┌──($USER㉿$HOST)-[$(pwd)]" choice=$1 if [[ ! $choice =~ ^[1-2]+$ ]]; then read -p "└─$>>" choice fi # Define installation directories install_dir="/usr/share/hackingtool" Loading Loading
.github/workflows/test_install.yml 0 → 100644 +26 −0 Original line number Diff line number Diff line name: test_install on: pull_request: branches: [master] push: branches: [master] jobs: test_install: runs-on: ubuntu-latest env: TERM: "linux" steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: python-version: 3.x cache: 'pip' - run: pip install --upgrade pip - run: pwd && ls -hal # How can we pipe in responses to `read` prompts? #- run: echo -e "\n1\n1\n1\n" | sudo ./install.sh - run: sudo ./install.sh 1 - run: pwd && ls -hal - run: echo -e "1\n/home/runner/work/hackingtool/hackingtool\n" | hackingtool || true - run: pwd && ls -hal
hackingtool.py +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ class AllTools(HackingToolsCollection): if __name__ == "__main__": try: if system() == 'Linux': fpath = "/home/hackingtoolpath.txt" fpath = os.path.expanduser("~/hackingtoolpath.txt") if not os.path.exists(fpath): os.system('clear') # run.menu() Loading
install.sh +4 −2 Original line number Diff line number Diff line Loading @@ -50,8 +50,10 @@ echo -e "${WHITE} [2] Arch Linux (pacman)" # added arch linux suppo echo -e "${WHITE} [0] Exit " echo -e "${COLOR}┌──($USER㉿$HOST)-[$(pwd)]" choice=$1 if [[ ! $choice =~ ^[1-2]+$ ]]; then read -p "└─$>>" choice fi # Define installation directories install_dir="/usr/share/hackingtool" Loading