Browse Source

add -q to grep

Émile Morel 9 years ago
parent
commit
36f930fc2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/install

+ 1 - 1
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