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

9
vpu.sh
View File

@ -177,6 +177,15 @@ function checkSetup() {
case "${1}" in
install| -i | i )
${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 ${package}
;;
-ib|ib)
${repoPath}/xbps-src pkg ${package}
if [ -f /usr/bin/sudo ];then
adminCmd="sudo"