From 4380ab94342fe234c39d7b27240c69c175d33cb8 Mon Sep 17 00:00:00 2001 From: Kyle Robbertze Date: Mon, 18 May 2020 14:52:48 +0200 Subject: [PATCH] Force fixed strings on grep for media-monitor Fixes removing the config file on re-running install --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index ae2b8a870..1b5b89c20 100755 --- a/install +++ b/install @@ -768,7 +768,7 @@ loudCmd "./build.sh" if [ -f /etc/airtime/airtime.conf ]; then # TODO use VERSION or some other way to check for updates and handle # media-monitor case on it's own - OLD_CONF=$(grep "[media-monitor]" /etc/airtime/airtime.conf) + OLD_CONF=$(grep -F "[media-monitor]" /etc/airtime/airtime.conf || true) if [ -n "${OLD_CONF}" ]; then upgrade="t"