kvz/bash3boilerplate
View on GitHub ↗ ★ 2,215 Shell
Templates to write better Bash scripts
5 mentions on Hacker News by 3 people: 1 story, 4 comments · first 2016-02-16 · latest 2024-09-14
20082026
-
I can highly recommend using bash3boilerplate ( https://github.com/kvz/bash3boilerplate ) if you're writing BASH scripts and don't care about them running on systems that don't use BASH. It provides logging facilities with colour usage for…
comment by ndsipa_pomu · 2024-09-14 · in Techniques I use to create a great user experience for shell scripts -
…fail (instead blindly moves on to the next statement). Consider using bash and these options: https://github.com/kvz/bash3boilerplate/blob/main/main.sh#L1... for most scripts.
comment by joshka · 2024-04-10 · in My deployment platform is a shell script -
…every script you write: https://www.shellcheck.net/ Personally, I'm a big fan of BASH3 boilerplate: https://github.com/kvz/bash3boilerplate It's fine for BASH versions above v3 and provides decent logging though I typically extend the…
comment by ndsipa_pomu · 2024-03-02 · in Bash Debugging -
I'm a fan of Bash3 Boilerplate ( https://github.com/kvz/bash3boilerplate ) and use a modified version of it for my shell scripts now. I like the code style and the logging, although I've amended the logging slightly to add a pipe input for…
comment by ndsipa_pomu · 2023-09-22 · in Being a bash developer in the 21st century (2021)