summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharif Nassar <sharif@mediatemple.net>2011-07-11 16:54:20 -0700
committerSharif Nassar <sharif@mediatemple.net>2011-07-11 16:54:20 -0700
commit4dff5634b3412ec6a3ab29418ebb4098816142ec (patch)
treedaacaa4352143e7b1fbfeb1d05c89090caae8a65
parent103504b310d307fdf6dcb9ad4c89602abd2b07eb (diff)
On Solaris, 'test -a' does not work with /bin/sh
-a file True if file exists. (Not available in sh.)
-rw-r--r--files/concatfragments.sh2
1 files changed, 1 insertions, 1 deletions
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