Can you create the command text in a variable, and use that variable for `echo` and for executing the command? That'll make it easier to update. You could also create a function `echo_and_exec` that prints and execs a command.