From 06a3ddad69206f3dffe153c5a0e2bf6298b92a8d Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Mon, 14 Jan 2019 23:53:35 +1300 Subject: [PATCH] Avoid running grep --- bin/mythtv-update-motd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd index 46542da..44ff0f3 100755 --- a/bin/mythtv-update-motd +++ b/bin/mythtv-update-motd @@ -44,7 +44,7 @@ else if [ -f /etc/os-release ] then - DISTRO=$(grep ^ID= /etc/os-release | awk -F= '{ print $2 }') + DISTRO=$(awk -F= '$1 == "ID" { print $2 }' /etc/os-release) else DISTRO='unknown' fi -- 2.30.2