Use of && is bad in this context since it will return 1 causing cosmos to exit with status 1 if a reboot is not required.