Default How to update CM11

if i go to the setting panel on my S2, and i select update CM (i've got a nightly)..

1) it update and replace the "original" CM11
or
2) it update just the modified CM11 by infected??

thanks to everyone