summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-07 14:05:32 -0500
committerMarc Coquand <marc@mccd.space>2024-05-07 14:05:32 -0500
commitc7bd74377b05659c43361bbb63ba6d4e45892d00 (patch)
treed1b58f20a15422acd808edb588e8ed3a8691fd10 /hooks
parent23d5f026cd801b64ea0eba68e0d0eab7d8f799df (diff)
downloadrcm-c7bd74377b05659c43361bbb63ba6d4e45892d00.tar.gz
rcm-c7bd74377b05659c43361bbb63ba6d4e45892d00.tar.bz2
rcm-c7bd74377b05659c43361bbb63ba6d4e45892d00.zip
Void script: Update
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-up/void6
1 files changed, 6 insertions, 0 deletions
diff --git a/hooks/pre-up/void b/hooks/pre-up/void
index 72f1c42..7492f9f 100755
--- a/hooks/pre-up/void
+++ b/hooks/pre-up/void
@@ -8,4 +8,10 @@ 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 \ No newline at end of file