From 36f930fc2f5dd75148d7475aef51538d0644738d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20Morel?= Date: Fri, 21 Aug 2015 14:50:09 +0200 Subject: [PATCH] add -q to grep --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 1756a8a..2a8393a 100644 --- a/scripts/install +++ b/scripts/install @@ -78,7 +78,7 @@ export DEBIAN_FRONTEND=noninteractive # Based on https://wiki.debian.org/WiFi#USB_Devices if [ "${firmware_nonfree}" == yes ]; then # check if non-free is set on sources.list - if ! grep non-free /etc/apt/sources.list ; then + if ! grep -q non-free /etc/apt/sources.list ; then sed -i -e '0,/main/{s/main/main non-free/}' /etc/apt/sources.list apt-get update fi