my favorite tool; makes writing a bash fun for me.
74 karma · joined September 27, 2016
function main {
if ! failing_cmd; then
log "this fails!"
return 1
fi
log "this won't log"
}main
I only mention this because there are folks who don't like set -e.
This has always been really hard for me to do, particularly if I actually am happy with the offer. It could be imposter syndrome, where I often feel like I don't "deserve" it.
That said, we do have a lot of helper scripts that we use in our day-to-day (local development). They're not "large bash scripts", but they're small enough that we don't really need a proper programming language. Some degree of code quality with style guides and shellcheck does help.
IFS=' ' read -ra routes <<<"${stuff}"
for route in "${routes[@]}"; do
curl localhost:8080/"$route"
doneI can't get that with a rubik's cube.
I accept that not everyone's like me, though.
And then they killed it for no reason.