Don't execute commands twice

Authored by dchan on Dec 7 2017, 3:44 AM.