r4541 - vdr/vdr/trunk/debian

Thomas Schmidt tschmidt at alioth.debian.org
Fri May 4 21:48:23 UTC 2007


Author: tschmidt
Date: 2007-05-04 21:48:23 +0000 (Fri, 04 May 2007)
New Revision: 4541

Modified:
   vdr/vdr/trunk/debian/vdr-groups.sh
Log:
* check if $2 is empty before testing if $groups_file exists


Modified: vdr/vdr/trunk/debian/vdr-groups.sh
===================================================================
--- vdr/vdr/trunk/debian/vdr-groups.sh	2007-05-04 21:40:15 UTC (rev 4540)
+++ vdr/vdr/trunk/debian/vdr-groups.sh	2007-05-04 21:48:23 UTC (rev 4541)
@@ -90,7 +90,7 @@
 action="$1"
 groups_file="$DIR/$2"
 
-if [ ! -e $groups_file ]; then
+if [ -z $2 ] || [ ! -e $groups_file ]; then
     show_help
     exit 127
 fi




More information about the pkg-vdr-dvb-changes mailing list