Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- red() { echo "$(tput setaf 1)$*$(tput setaf 9)"; }
- green() { echo "$(tput setaf 2)$*$(tput setaf 9)"; }
- yellow() { echo "$(tput setaf 3)$*$(tput setaf 9)"; }
- blue() { echo "$(tput setaf 4)$*$(tput setaf 9)"; }
- notinstalled=$(red " ✗ not installed\n")
- installed=$(green " ✔ installed\n")
- reset
- blue "---------------------------------"
- yellow " Installed Or Not! "
- blue "----add-Packages-to-packages.txt-"
- for cmd in `cat packages.txt` ; do
- printf "%-10s" "$cmd"
- if hash "$cmd" 2> /dev/null ; then printf "${installed}" ; else printf "${notinstalled}" ; fi
- done
- blue "-hynten@speed-mailer.com---------"
- echo " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement