Following his release from Dunfermline Athletic, Hrivňák returned to his homeland by signing for Spartak Trnava, where he is a back-up goalkeeper for Dobrivoj Rusov, who is injured.