You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow best practices with read command in deploy script
The valued advice provided by the ShellCheck shell script static analysis tool is:
https://github.com/koalaman/shellcheck/wiki/SC2162
> You should always use `-r` unless you have a good reason not to.
In order to achieve ShellCheck compliance, it is necessary to do one of the following:
- Add the `-r` flag to the `read` command.
- Add a ShellCheck directive to the script to disable rule SC2162 for this line.
In this particular application, `-r` is not necessary, but it also does no harm. So I think the first option is best.
0 commit comments