summaryrefslogtreecommitdiff
path: root/hooks/pre-up
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/pre-up')
-rwxr-xr-xhooks/pre-up/void4
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