1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

add -q to grep

This commit is contained in:
Émile Morel 2015-08-21 14:50:09 +02:00
parent b175d5a01c
commit 36f930fc2f

View file

@ -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