add separate option for nonfree packages

Former-commit-id: 1fc8377d529f2ad1efad1d234240b8cc5593ecbc
Former-commit-id: 9dd3426c68d3c21a9dea616ca7644fde79079796
This commit is contained in:
mollusk 2019-02-15 09:25:40 -07:00
parent 4c8bef171f
commit f603d63d37

11
vpu.sh
View File

@ -182,9 +182,18 @@ case "${1}" in
adminCmd="sudo" adminCmd="sudo"
printf "${YELLOW}Setting admin command to 'sudo'...${NC}\n" printf "${YELLOW}Setting admin command to 'sudo'...${NC}\n"
fi fi
${adminCmd} xbps-install -R ${repoPath}/hostdir/binpkgs/nonfree ${package} ${adminCmd} xbps-install -R ${repoPath}/hostdir/binpkgs ${package}
;; ;;
-ib|ib)
${repoPath}/xbps-src pkg ${package}
if [ -f /usr/bin/sudo ];then
adminCmd="sudo"
printf "${YELLOW}Setting admin command to 'sudo'...${NC}\n"
fi
${adminCmd} xbps-install -R ${repoPath}/hostdir/binpkgs/nonfree ${package}
;;
check | -ck | ck) check | -ck | ck)
checkSetup checkSetup
;; ;;