From: Sharif Nassar Date: Mon, 11 Jul 2011 23:54:20 +0000 (-0700) Subject: On Solaris, 'test -a' does not work with /bin/sh X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4dff5634b3412ec6a3ab29418ebb4098816142ec;p=puppet-concat.git On Solaris, 'test -a' does not work with /bin/sh -a file True if file exists. (Not available in sh.) --- diff --git a/files/concatfragments.sh b/files/concatfragments.sh index 47663fd..aac827d 100644 --- a/files/concatfragments.sh +++ b/files/concatfragments.sh @@ -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