Created
June 8, 2025 22:13
-
-
Save lazypwny751/8dcc26a4b29657929b4f3eeae18ea819 to your computer and use it in GitHub Desktop.
install .deb files easily with simple tui.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mapfile -t arr < <(ls *.deb) | |
| PS3="Select a deb file (type exit or quit for close the script):> " | |
| select fdeb in "${arr[@]}" ; do | |
| case "${REPLY,,}" in | |
| "e"|"q"|"exit"|"quit") | |
| exit 0 | |
| ;; | |
| *) | |
| if [[ -z "${fdeb}" ]] ; then | |
| echo "null option!" | |
| else | |
| apt install "$(realpath ${fdeb})" | |
| fi | |
| ;; | |
| esac | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment