diff options
Diffstat (limited to 'hooks/pre-up/void')
-rwxr-xr-x | hooks/pre-up/void | 4 |
1 files changed, 1 insertions, 3 deletions
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 |