4 ms·
Lol, we just made a bash function using this. // echo_and_run() { echo "$*" ; "$@" ; } Logs the cmd before running.
by thennegah 7y ago
Lol, we just made a bash function using this.
// echo_and_run() { echo "$*" ; "$@" ; }
Logs the cmd before running.
- gcmeplz 7y agoYou can also use `set -xv` to get nice debugging logs https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html#The-Set-Builtin https://www.gnu.org/software/bash/manual/html_node/The-Set-B...