Fold or all in

I’m on the final table an in a fairly weak stack posittion once I had ante’d up . Hit 2 high pairs on flop but 3 flush cards and a raise from villian . I had correctly read villian had 1 flush card , but odds were still in my favour . In retrospect maybe I should have called and seen what was on the turn and then jammed in if no flush card turned up , but I was hoping he/she was risk averse and fold , as they didn’t have a big stack either .

IMO, good shove here, with great equity.
Your stack was pretty small, so if you call, you’re almost committed anyway.
If your opponent flopped the flush, just a cooler. And if you call, there are so many cards on the turn which you won’t want to see.