https://jon.sprig.gs/blog/post/46
Weirdness with Bash functions and Curl