ShellCheck helps you find subtle and obvious bugs / issues with your shells scripts.
Hit the subscribe button to receive more videos like this!
---
Timestamped table of contents:
0:00 -- What we'll cover in this video
1:20 -- Running ShellCheck against our broken script
1:59 -- Making sure your script has a shebang defined at the top of the file
2:34 -- Crawling through ShellCheck warnings one by one
3:18 -- You can only define local variables in a function with Bash, not POSIX shell
4:16 -- Help detect invalid commands by splitting variable references and assignments
5:48 -- If you want to interpolate variables, use double quotes not single quotes
7:34 -- Debugging an error and using ShellCheck's output to help fix a typo
9:15 -- Importance of splitting out your variable's reference and assignment
10:54 -- Ignoring a specific ShellCheck warning
12:10 -- ShellCheck is very nice to hook up with your continuous integration server
12:47 -- An example of using ShellCheck with Travis-CI for an open source project
13:56 -- I use ShellCheck all the time in my own scripts and it's easy to install
14:29 -- Messing around with https://shellcheck.net without having to install it locally
Reference links:
https://github.com/koalaman/shellcheck
https://shellcheck.net
---
Follow along?
Personal Website: https://nickjanetakis.com
Twitter: / nickjanetakis
En esta página del sitio puede ver el video en línea Linting and Improving Your Bash Scripts with ShellCheck de Duración hora minuto segunda en buena calidad , que subió el usuario Nick Janetakis 05 mayo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,339 veces y le gustó 66 a los espectadores. Disfruta viendo!