diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-07 14:05:32 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-07 14:05:32 -0500 |
commit | c7bd74377b05659c43361bbb63ba6d4e45892d00 (patch) | |
tree | d1b58f20a15422acd808edb588e8ed3a8691fd10 /hooks/pre-up/void | |
parent | 23d5f026cd801b64ea0eba68e0d0eab7d8f799df (diff) | |
download | rcm-c7bd74377b05659c43361bbb63ba6d4e45892d00.tar.gz rcm-c7bd74377b05659c43361bbb63ba6d4e45892d00.tar.bz2 rcm-c7bd74377b05659c43361bbb63ba6d4e45892d00.zip |
Void script: Update
Diffstat (limited to '')
-rwxr-xr-x | hooks/pre-up/void | 6 |
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 |