db2html fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   This is wrong:

   if [ -a /etc/debian_version ]

   '-a' means 'and', so it should obviously have two arguments and
FreeBSD's /bin/sh really does not like it.


Changelog:

   François Gouget <fgouget@codeweavers.com>

 * documentation/db2html-winehq

   Fixed incorrect use of 'test -a' (for FreeBSD)


-- 
François Gouget
fgouget@codeweavers.com
Index: documentation/db2html-winehq
===================================================================
RCS file: /home/wine/wine/documentation/db2html-winehq,v
retrieving revision 1.3
diff -u -r1.3 db2html-winehq
--- documentation/db2html-winehq	2001/11/25 00:51:36	1.3
+++ documentation/db2html-winehq	2002/01/14 17:38:57
@@ -12,12 +12,12 @@
 ## $LINUXDIST holds the name of the distribution
 ## $JADETAG adds "/#html" to the stylesheet-specification in the Jade
 ##          command line (see comments below), if necessary for that dist.
-if [ -a /etc/debian_version ]; then
+if [ -e /etc/debian_version ]; then
   LINUXDIST="Debian"
   JADETAG=\#html
 fi
 
-if [ -a /etc/redhat_release ]; then
+if [ -e /etc/redhat_release ]; then
   LINUXDIST="Redhat"
   JADETAG=
 fi

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux