Changer in wake alamrm .sh

The original .sh loop intended is wrong thus making reading the code rather difficult