Pipe logs and also see them:
script.sh |& tee logs.txt
Shell script arguments: https://twitter.com/b0rk/status/1308070270809317377/photo/1
Environment variables: https://twitter.com/b0rk/status/1312038640252588039/photo/1
Brackets https://twitter.com/b0rk/status/1312573876640063488/photo/1
Debugging bash
https://twitter.com/b0rk/status/1312413117436104705/photo/1
Quotes https://twitter.com/b0rk/status/1313570733071781898/photo/1
if statements: https://twitter.com/b0rk/status/1314021181981364227/photo/1
Errors in bash: https://twitter.com/b0rk/status/1314345978963648524/photo/1