Advertisement
TheAtomicAss

Dependency Test

Dec 4th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. menu_deptest()
  2. (
  3.   MENU_DEPTEST_ARRAY=( cdparanoia cdrdao cmatrix pactl sshfs xset )
  4.   clear
  5.  
  6.   for i in ${MENU_DEPTEST_ARRAY[@]}
  7.     do
  8.       if which $i &>/dev/null;
  9.         then
  10.           echo -e "  $i: \e[32m\e[1mPresent\e[0m"
  11.         else
  12.           echo -e "  $i: \e[31m\e[1mNot Present!\e[0m"
  13.       fi
  14.   done
  15.  
  16.   echo -e "\n  Press Enter to continue"
  17.   read enterKey
  18. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement