From f603d63d3778693c63503d0160acfd923469e040 Mon Sep 17 00:00:00 2001 From: mollusk Date: Fri, 15 Feb 2019 09:25:40 -0700 Subject: [PATCH] add separate option for nonfree packages Former-commit-id: 1fc8377d529f2ad1efad1d234240b8cc5593ecbc Former-commit-id: 9dd3426c68d3c21a9dea616ca7644fde79079796 --- vpu.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vpu.sh b/vpu.sh index 5657a90..cc7f465 100755 --- a/vpu.sh +++ b/vpu.sh @@ -182,9 +182,18 @@ case "${1}" in adminCmd="sudo" printf "${YELLOW}Setting admin command to 'sudo'...${NC}\n" 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) checkSetup ;;