diff --git a/bootstrap.sh b/bootstrap.sh
index 11bf613..898ae32 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -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!"