TheAtomicAss icon

Dependency Test

TheAtomicAss | PRO | 12/04/16 03:32:50 PM UTC | 0 ⭐ | 404 👁️ | Never ⏰ | []
Bash |

380 B

|

None

|

0 👍

/

0 👎

menu_deptest()
(
  MENU_DEPTEST_ARRAY=( cdparanoia cdrdao cmatrix pactl sshfs xset )
  clear
  
  for i in ${MENU_DEPTEST_ARRAY[@]}
    do
      if which $i &>/dev/null;
        then
          echo -e "  $i: \e[32m\e[1mPresent\e[0m"
        else
          echo -e "  $i: \e[31m\e[1mNot Present!\e[0m"
      fi
  done
 
  echo -e "\n  Press Enter to continue"
  read enterKey
)

Comments