Skip to content

Commit

Permalink
Using grep -q flag instead of piping to /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
dyllan-p committed Feb 2, 2021
1 parent 6bce9f8 commit 6b49d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ API_KEY=""
check_pkg_manager(){
if [ -f /etc/redhat-release ]; then
PKG="yum"
elif cat /etc/system-release | grep "Amazon Linux release 2 (Karoo)" > /dev/null; then
elif cat /etc/system-release | grep -q "Amazon Linux release 2 (Karoo)"; then
PKG="yum"
elif [ -f /etc/debian_version ]; then
PKG="apt"
Expand Down

0 comments on commit 6b49d34

Please sign in to comment.