]> gitweb.fluxo.info Git - puppet-concat.git/commitdiff
On Solaris, 'test -a' does not work with /bin/sh
authorSharif Nassar <sharif@mediatemple.net>
Mon, 11 Jul 2011 23:54:20 +0000 (16:54 -0700)
committerSharif Nassar <sharif@mediatemple.net>
Mon, 11 Jul 2011 23:54:20 +0000 (16:54 -0700)
     -a file                 True if file exists. (Not  available
                             in sh.)

files/concatfragments.sh

index 47663fdb5aa9811e403e6d6d403317c2059e92e0..aac827dfebe95c6a1536c1f0df0a81b2f0f26cdb 100644 (file)
@@ -80,7 +80,7 @@ if [ x${WORKDIR} = "x" ]; then
 fi
 
 # can we write to -o?
-if [ -a ${OUTFILE} ]; then
+if [ -f ${OUTFILE} ]; then
        if [ ! -w ${OUTFILE} ]; then
                echo "Cannot write to ${OUTFILE}"
                exit 1