template-specs: dokuwiki-plugin.spec - avoid syntax error on empty version

glen glen at pld-linux.org
Sat Aug 29 22:08:34 CEST 2009


Author: glen                         Date: Sat Aug 29 20:08:34 2009 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- avoid syntax error on empty version

---- Files affected:
template-specs:
   dokuwiki-plugin.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: template-specs/dokuwiki-plugin.spec
diff -u template-specs/dokuwiki-plugin.spec:1.8 template-specs/dokuwiki-plugin.spec:1.9
--- template-specs/dokuwiki-plugin.spec:1.8	Mon Aug 10 19:39:35 2009
+++ template-specs/dokuwiki-plugin.spec	Sat Aug 29 22:08:29 2009
@@ -29,7 +29,7 @@
 %prep
 %setup -q -n %{plugin}
 version=$(cat VERSION)
-if [ $(echo "$version" | tr -d -) != %{version} ]; then
+if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
 	: %%{version} mismatch
 	exit 1
 fi
@@ -68,6 +68,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2009/08/29 20:08:29  glen
+- avoid syntax error on empty version
+
 Revision 1.8  2009/08/10 17:39:35  glen
 - hint is obvious;
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/template-specs/dokuwiki-plugin.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list