From 3cbfecb852f4db746b6040ea62843a529da1e1c9 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 7 May 2024 14:08:34 -0500 Subject: Void script: Simplify --- hooks/pre-up/void | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hooks/pre-up') diff --git a/hooks/pre-up/void b/hooks/pre-up/void index 7492f9f..01de807 100755 --- a/hooks/pre-up/void +++ b/hooks/pre-up/void @@ -10,8 +10,6 @@ if [ ! -f ~/repository.list ]; then xpkg -m > ~/repository.list fi -NONFREE_REPO=$(cat ~/repository.list | grep "void-repo-nonfree") - -if [ ! -n "$NONFREE_REPO" ]; then +if [ ! "$(cat ~/repository.list | grep 'void-repo-nonfree')" ]; then sudo xbps-install -Sy void-repo-nonfree fi \ No newline at end of file -- cgit v1.2.3