mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 08:41:02 -05:00
Updated PSScriptAnalyzer validation for pwsh
This commit is contained in:
parent
6b60348fd5
commit
6831d3735a
1 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,11 @@ function LintCodebase()
|
||||||
# If module found, ensure Invoke-ScriptAnalyzer command is available
|
# If module found, ensure Invoke-ScriptAnalyzer command is available
|
||||||
if [[ "$VALIDATE_PSSA_MODULE" == "PSScriptAnalyzer" ]]; then
|
if [[ "$VALIDATE_PSSA_MODULE" == "PSScriptAnalyzer" ]]; then
|
||||||
VALIDATE_PSSA_CMD=$(pwsh -c "(Get-Command Invoke-ScriptAnalyzer | Select-Object -First 1).Name" 2>&1)
|
VALIDATE_PSSA_CMD=$(pwsh -c "(Get-Command Invoke-ScriptAnalyzer | Select-Object -First 1).Name" 2>&1)
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [[ "$VALIDATE_PSSA_CMD" != "Invoke-ScriptAnalyzer" ]]; then
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
|
Loading…
Reference in a new issue