Force fixed strings on grep for media-monitor

Fixes removing the config file on re-running install
This commit is contained in:
Kyle Robbertze 2020-05-18 14:52:48 +02:00
parent ebb6b59755
commit 4380ab9434
1 changed files with 1 additions and 1 deletions

View File

@ -768,7 +768,7 @@ loudCmd "./build.sh"
if [ -f /etc/airtime/airtime.conf ]; then if [ -f /etc/airtime/airtime.conf ]; then
# TODO use VERSION or some other way to check for updates and handle # TODO use VERSION or some other way to check for updates and handle
# media-monitor case on it's own # 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 if [ -n "${OLD_CONF}" ]; then
upgrade="t" upgrade="t"