From c7bd74377b05659c43361bbb63ba6d4e45892d00 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 7 May 2024 14:05:32 -0500 Subject: Void script: Update --- hooks/pre-up/void | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hooks/pre-up/void') 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 -- cgit v1.2.3