summaryrefslogtreecommitdiff
path: root/hooks/pre-up/3-void
blob: e0824c2bcf84670bd908d7cca7763aaf5db8a110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# 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