Skip to content

Commit

Permalink
misc/postinstall.sh: fix misuse of tr
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-utkin committed Dec 11, 2024
1 parent 51b2f86 commit e03ecf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e03ecf6

Please sign in to comment.