On Solaris, 'test -a' does not work with /bin/sh

-a file                 True if file exists. (Not  available
                             in sh.)
This commit is contained in:
Sharif Nassar 2011-07-11 16:54:20 -07:00
parent 103504b310
commit 4dff5634b3

View 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