From 6b49d344a28000314c27881b32838de841fdcbff Mon Sep 17 00:00:00 2001 From: Dyllan Pascoe Date: Tue, 2 Feb 2021 05:54:23 +0200 Subject: [PATCH] Using grep -q flag instead of piping to /dev/null --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 37521fc1..5aa08014 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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"