Meaning Chinese Phrase

I was looking at this chinese show and I heard a very meaning phrase…

那就是乐于做个墙头草, 风往哪吹往哪倒。

Anyway I reformatted my laptop 3 times. =.=