#!/bin/bash # We'll use xpkg from xtools to find installable packages if ! [ -x "$(command -v xpkg)" ]; then sudo xbps-install xtools fi # Set up file sync if [ ! -f ~/repository.list ]; then xpkg -m > ~/repository.list fi NONFREE_REPO=$(cat ~/repository.list | grep "void-repo-nonfree") if [ ! -n "$NONFREE_REPO" ]; then sudo xbps-install -Sy void-repo-nonfree fi