From 393cdceb4e86a8b65bf641be2cc69aa592216e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 11 Nov 2010 13:29:04 +0200 Subject: [PATCH] More fixes to mythorphans error handling. --- mythtv/files/mythorphans | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mythtv/files/mythorphans b/mythtv/files/mythorphans index 07e573e..9d5ee70 100755 --- a/mythtv/files/mythorphans +++ b/mythtv/files/mythorphans @@ -1,8 +1,12 @@ #!/bin/sh # read in configs -MYTHVERSION="`rpm -q --queryformat='%{VERSION}\n' mythtv-docs`" || \ - echo "mythtv-docs package not installed" 1>&2 ; exit 1 +MYTHVERSION="`rpm -q --queryformat='%{VERSION}\n' mythtv-docs`" +if [ $? -ne 0 ]; then + echo "mythtv-docs package not installed" 1>&2 + exit 1 +fi + . /etc/mythtv/mysql.txt if [ -z "${LocalHostName}" ]; then