Test If Your Shell Scripts Are POSIX Compliant with ShellCheck

preview_player
Показать описание
You can do this with the --shell sh flag even if your shebang is set to bash.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

THE TOOLS I USE / GEAR
---------------------------------------------------

FOLLOW ME ELSEWHERE
---------------------------------------------------

TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:08 -- Two conditions, one is POSIX compliant and the other is not
0:38 -- We can use the --shell sh flag with ShellCheck
1:10 -- It's useful to ensure compatibility when you want it
2:18 -- The shorthand flag is -s sh
Рекомендации по теме