Always set -euo pipefail in your bash scripts. It tells people who read your code that you actually care about things and that they can come to you if they need someone to talk.
Conversation
Notices
-
Embed this notice
Piko (piko@chaos.social)'s status on Sunday, 26-Feb-2023 14:49:28 JST Piko - clacke likes this.
-
Embed this notice
j.r / Julian (jr@social.anoxinon.de)'s status on Sunday, 26-Feb-2023 14:49:31 JST j.r / Julian @vollkorn @piko this is actually exactly why you should set it, lol
clacke likes this. -
Embed this notice
vollkorn (vollkorn@chaos.social)'s status on Sunday, 26-Feb-2023 14:49:38 JST vollkorn @piko That causes my scripts to fail in ways I don't understand. It reminds me that I have no clue what I'm doing. I never put it in.