diff --git a/trimrepo.sh b/trimrepo.sh index ca10eeb..f3318a6 100755 --- a/trimrepo.sh +++ b/trimrepo.sh @@ -2,13 +2,10 @@ chk_deps() { - if [ ! -f /usr/bin/tux ] || [ ! -f /usr/bin/sudo ];then - echo "Please install: tuxc & sudo, one of them was not found" + if ! command -v java >/dev/null 2>&1 || ! command -v wget >/dev/null 2>&1;then + echo "Please install: java & wget, one of them was not found" exit 1 - - - sudo tux i openjdk-8-jre wget - fi + fi } dl_bins()