#!/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 if [ ! "$(cat ~/repository.list | grep 'void-repo-nonfree')" ]; then sudo xbps-install -Sy void-repo-nonfree fi