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:
parent
103504b310
commit
4dff5634b3
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ if [ x${WORKDIR} = "x" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# can we write to -o?
|
# can we write to -o?
|
||||||
if [ -a ${OUTFILE} ]; then
|
if [ -f ${OUTFILE} ]; then
|
||||||
if [ ! -w ${OUTFILE} ]; then
|
if [ ! -w ${OUTFILE} ]; then
|
||||||
echo "Cannot write to ${OUTFILE}"
|
echo "Cannot write to ${OUTFILE}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue