From 3d7208853d0f7dfdee4c0aa26a65557414aea96f Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Thu, 9 May 2024 21:23:28 -0500 Subject: Shell update --- hooks/pre-up/3-void | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 hooks/pre-up/3-void (limited to 'hooks/pre-up/3-void') diff --git a/hooks/pre-up/3-void b/hooks/pre-up/3-void new file mode 100755 index 0000000..e0824c2 --- /dev/null +++ b/hooks/pre-up/3-void @@ -0,0 +1,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 -- cgit v1.2.3