From 75cc35f180b09346b5fd6126a286c75d1280206e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Wed, 25 Aug 2010 10:27:30 +0300 Subject: [PATCH] Improved error handling of mythorphans cron job. --- mythtv/files/mythorphans | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mythtv/files/mythorphans b/mythtv/files/mythorphans index d4a0e0a..ce84c2c 100755 --- a/mythtv/files/mythorphans +++ b/mythtv/files/mythorphans @@ -1,8 +1,9 @@ #!/bin/sh # read in configs +MYTHVERSION="`rpm -q --queryformat='%{VERSION}\n' mythtv-docs`" || \ + echo "mythtv-docs package not installed" 1>&2 ; exit 1 . /etc/mythtv/mysql.txt -MYTHVERSION="`rpm -q --queryformat='%{VERSION}\n' mythtv-docs`" if [ -z "${LocalHostName}" ]; then LocalHostName=`hostname`