Commit Graph

8 Commits

Author SHA1 Message Date
Lukáš Zaoral
d018f7a9e6 lint(ShellCheck): fix SC2086 info diagnostic
Some variables, that were unquoted intentionally were converted to arrays.

According to ShellCheck's documentation:

Quoting variables prevents word splitting and glob expansion, and prevents
the script from breaking when input contains spaces, line feeds, glob
characters and such.

Related: https://www.shellcheck.net/wiki/SC2086
Related: #470
2022-09-02 09:52:05 +02:00
Lukáš Zaoral
06b0a89655 lint(ShellCheck): fix SC2048 warning
According to ShellCheck's documentation:

Use "$@" (with quotes) to prevent whitespace problems.  $* and ${array[*]},
unquoted, is subject to word splitting and globbing.

Related: https://www.shellcheck.net/wiki/SC2048
Related: #470
2022-09-02 09:52:05 +02:00
Lukáš Zaoral
65309830cb lint(ShellCheck): fix SC2166 warning
According to ShellCheck's documentation:

-a and -o  in [ .. ] test expressions are not well defined, and can cause
incorrect results when arguments start with dashes or contain !.

Related: https://www.shellcheck.net/wiki/SC2166
Related: #470
2022-09-02 09:52:05 +02:00
Lukáš Zaoral
0ecc9fa480 lint(ShellCheck): fix SC2068 error
According to ShellCheck's documentation:

Double quotes around $@ and ${array[@]}) prevent globbing and word splitting
of individual elements, while still expanding to multiple separate arguments.

Related: https://www.shellcheck.net/wiki/SC2068
Related: #470
2022-09-02 09:52:05 +02:00
Xavier Delaruelle
516c540109 script: re-license envml scripts from GPLv3+ to GPLv2+
Change license of envml and envml.cmd scripts from GPLv3+ to GPLv2+.

Align this way all files from the Modules project under the GPLv2+
license.

Consent has been obtained from the copyright holders (I and @jraphanel)
to perform such move. Consent from Jacques Raphanel was collected by
email.

Related to #389
2021-03-02 19:31:29 +01:00
Xavier Delaruelle
1fb1bd8c79 script: clean trailing space character 2020-08-11 07:02:18 +02:00
Jacques Raphanel
ae235a87ad script: introduce envml.cmd for windows
Provide a dedicated batch file to provide similar behavior of envml bash
script but for CMD Windows shell. Update existing envml bash script to
provide same behavior for cmd and sh file (split argument over ';'
character, in addition to '&' character).
2020-03-10 07:44:20 +01:00
Xavier Delaruelle
9ade952bea script: move all dist. and maint. scripts in a script dir 2020-01-12 13:31:21 +01:00