diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-07 14:08:34 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-07 14:08:34 -0500 |
commit | 3cbfecb852f4db746b6040ea62843a529da1e1c9 (patch) | |
tree | 6cbbb149add6cba3329e96783170cd00f5d0bb83 /hooks | |
parent | c7bd74377b05659c43361bbb63ba6d4e45892d00 (diff) | |
download | rcm-3cbfecb852f4db746b6040ea62843a529da1e1c9.tar.gz rcm-3cbfecb852f4db746b6040ea62843a529da1e1c9.tar.bz2 rcm-3cbfecb852f4db746b6040ea62843a529da1e1c9.zip |
Void script: Simplify
Diffstat (limited to '')
-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 |