ShellCheck Install the Latest Version: Difference between revisions

From WikiMLT
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{ContentArticleHeader/Linux_Server}}</noinclude>
<noinclude>{{ContentArticleHeader/Linux_Server}}</noinclude>
[[Category:Know How]]
==Deploy the latest stable version of ShellCheck==
==Get the latest stable version of ShellCheck==
<syntaxhighlight lang="shell" line="1">
<syntaxhighlight lang="shell" line="1">
# Instead of 'stable' you could use "v0.4.7" or "latest", etc.
# Instead of 'stable' you could use "v0.4.7" or "latest", etc.
Line 10: Line 9:
shellcheck --version
shellcheck --version
</syntaxhighlight>
</syntaxhighlight>
== References ==
== References ==
* GitHub: [https://github.com/koalaman/shellcheck#installing ShellCheck]
* GitHub: [https://github.com/koalaman/shellcheck#installing ShellCheck]
<noinclude>
<noinclude>
<div id="devStage">
<div id='devStage'>
{{devStage  
{{devStage  
  | Прндл  = Linux Server
  | Прндл  = Linux Server
  | Стадий = 3
  | Стадий = 6
  | Фаза  = Разработване
  | Фаза  = Утвърждаване
  | Статус = Разработван
  | Статус = Утвърден
  | ИдтПт  = Spas
  | ИдтПт  = Spas
  | РзбПт  = {{REVISIONUSER}}
  | РзбПт = Spas
| АвтПт  = Spas
| УтвПт = {{REVISIONUSER}}
  | ИдтДт  = 1.08.2022
  | ИдтДт  = 1.08.2022
  | РзбДт  = {{Today}}
  | РзбДт = 1.08.2022
| АвтДт  = 1.08.2022
| УтвДт = {{Today}}
  | ИдтРв  = [[Special:Permalink/29634|29634]]
  | ИдтРв  = [[Special:Permalink/29634|29634]]
  | РзбРв  = {{REVISIONID}}
  | РзбРв = [[Special:Permalink/29638|29638]]
| АвтРв  = [[Special:Permalink/29640|29640]]
| УтвРв = {{REVISIONID}}
}}
}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 11:55, 2 August 2022

De­ploy the lat­est sta­ble ver­sion of ShellCheck

# Instead of 'stable' you could use "v0.4.7" or "latest", etc.
cd /tmp && \
scversion="stable" && \
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv && \
sudo cp "shellcheck-${scversion}/shellcheck" /usr/local/bin/ && \
shellcheck --version

Ref­er­ences