Also check that the command is not empty
Check that sudo is asking for the password