Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2ae500

Browse filesBrowse files
committed
Add param to skip checks
1 parent cb23b88 commit b2ae500
Copy full SHA for b2ae500

File tree

Expand file treeCollapse file tree

1 file changed

+15
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-3
lines changed

‎src/ALZ/Public/Deploy-Accelerator.ps1

Copy file name to clipboardExpand all lines: src/ALZ/Public/Deploy-Accelerator.ps1
+15-3Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,25 @@ function Deploy-Accelerator {
169169
)]
170170
[Alias("tj")]
171171
[Alias("convertTfvarsToJson")]
172-
[switch] $convert_tfvars_to_json
172+
[switch] $convert_tfvars_to_json,
173+
174+
[Parameter(
175+
Mandatory = $false,
176+
HelpMessage = "[OPTIONAL] Determines whether to skip the requirements check. This is not recommended."
177+
)]
178+
[Alias("sr")]
179+
[Alias("skipRequirementsCheck")]
180+
[switch] $skip_requirements_check
173181
)
174182

175183
$ProgressPreference = "SilentlyContinue"
176184

177-
Write-InformationColored "Checking the software requirements for the Accelerator..." -ForegroundColor Green -InformationAction Continue
178-
Test-Tooling
185+
if(-not $skip_requirements_check) {
186+
Write-InformationColored "Checking the software requirements for the Accelerator..." -ForegroundColor Green -InformationAction Continue
187+
Test-Tooling
188+
} else {
189+
Write-InformationColored "Skipping the software requirements check..." -ForegroundColor Yellow -InformationAction Continue
190+
}
179191

180192
Write-InformationColored "Getting ready to deploy the accelerator with you..." -ForegroundColor Green -InformationAction Continue
181193

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.