summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-07 14:08:34 -0500
committerMarc Coquand <marc@mccd.space>2024-05-07 14:08:34 -0500
commit3cbfecb852f4db746b6040ea62843a529da1e1c9 (patch)
tree6cbbb149add6cba3329e96783170cd00f5d0bb83 /hooks
parentc7bd74377b05659c43361bbb63ba6d4e45892d00 (diff)
downloadrcm-3cbfecb852f4db746b6040ea62843a529da1e1c9.tar.gz
rcm-3cbfecb852f4db746b6040ea62843a529da1e1c9.tar.bz2
rcm-3cbfecb852f4db746b6040ea62843a529da1e1c9.zip
Void script: Simplify
Diffstat (limited to 'hooks')
-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