diff options
Diffstat (limited to 'hooks')
-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 |