Replace
&& by
-a
Code:
inputfile1=data/in/inputfile1.txt
inputfile2=data/in/inputfile2.txt
if [ ! -f ${inputfile1} -a ! -f ${inputfile2} ]
then
echo " "
echo "ERROR: Both files not found."
echo " "
exit 1
fi
if [ ! -f ${inputfile1} -o ! -f ${inputfile2} ]
then
echo " "
echo "ERROR: File(s) not found."
echo " "
exit 1
fi
echo " "
echo "RUN SUCCESSFUL: Both Files found. "
echo " "
exit 0