More fixes to mythorphans error handling.

This commit is contained in:
Timo Mkinen 2010-11-11 13:29:04 +02:00
parent 0a43c3c651
commit 393cdceb4e

View file

@ -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