From e03ecf61c320236e19bdaba014e4940ecfbbd1c5 Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Thu, 5 Dec 2024 18:29:53 +0000 Subject: [PATCH] misc/postinstall.sh: fix misuse of tr --- misc/postinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/postinstall.sh b/misc/postinstall.sh index c3002254..de52d762 100755 --- a/misc/postinstall.sh +++ b/misc/postinstall.sh @@ -345,8 +345,8 @@ case "$1" in exit 1 fi - BC_GENERAL_VERSION=`echo "SELECT value from GlobalSettings WHERE parameter = 'G_DVR_NAME'" \ - | mysql -h "$host" -D"$dbname" -u"$user" -p"$password" | tail -n 1 | tr "Bluecherry DVR v" " "` + BC_GENERAL_VERSION=$(echo "SELECT value from GlobalSettings WHERE parameter = 'G_DVR_NAME'" \ + | mysql -h "$host" -D"$dbname" -u"$user" -p"$password" | tail -n 1 | sed -e "s/Bluecherry DVR v//") if [ $BC_GENERAL_VERSION == 2 ]; then