Skip to content

Commit

Permalink
quietting grep command
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefal committed Jan 15, 2024
1 parent f9ea787 commit 2c9736e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install_polkit_rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ add_polkit_rules() {
}

#check if polkitd package is available, else exit
apt-cache --quiet=0 show polkitd 2>&1 | grep 'No packages found' && exit 1
apt-cache --quiet=0 show polkitd 2>&1 | grep -q 'No packages found' && exit 1
#install it if not already installed
! dpkg-query -W --showformat='${Status}\n' polkitd >/dev/null 2>&1 && apt-get -y install polkitd
add_polkit_rules

0 comments on commit 2c9736e

Please sign in to comment.