add separate option for nonfree packages
Former-commit-id: 1fc8377d529f2ad1efad1d234240b8cc5593ecbc Former-commit-id: 9dd3426c68d3c21a9dea616ca7644fde79079796
This commit is contained in:
parent
4c8bef171f
commit
f603d63d37
9
vpu.sh
9
vpu.sh
@ -177,6 +177,15 @@ function checkSetup() {
|
|||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
|
||||||
install| -i | i )
|
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}
|
${repoPath}/xbps-src pkg ${package}
|
||||||
if [ -f /usr/bin/sudo ];then
|
if [ -f /usr/bin/sudo ];then
|
||||||
adminCmd="sudo"
|
adminCmd="sudo"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user