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 ;;