allow comments in packages.txt again
This commit is contained in:
parent
70d649c98d
commit
a4ae9943f6
|
@ -90,7 +90,7 @@ setup() {
|
|||
|
||||
install_packages() {
|
||||
#shellcheck disable=SC2016,SC2046
|
||||
xbps-install -y $(xargs -a "$1") 2>&1 | grep -q "not found in repository pool." && error "Invalid package in packages.txt, run validate.sh"
|
||||
xbps-install -y $(sed '/^[[:space:]]*#/d;/^$/d' packages.txt | xargs) 2>&1 | grep -q "not found in repository pool." && error "Invalid package in packages.txt, run validate.sh"
|
||||
info "Done!"
|
||||
command -v git 1>/dev/null 2>&1 || error "git isn't installed even though it should be!"
|
||||
command -v stow 1>/dev/null 2>&1 || error "stow isn't installed even though it should be!"
|
||||
|
|
Reference in New Issue