You don’t use [[ (or [) when running a command and checking the result code.
if f1 && f2 ; then
echo "success"
else
echo "fail"
fi
You don’t use [[ (or [) when running a command and checking the result code.
if f1 && f2 ; then
echo "success"
else
echo "fail"
fi