Skip to content

Commit

Permalink
Remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gtheodorio committed Apr 8, 2024
1 parent a37383a commit cf70207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions powershell/install/falcon_windows_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ begin {
$response = Invoke-WebRequest @WebRequestParams -Uri "$($BaseUrl)/oauth2/token" -UseBasicParsing -Method 'POST' -Headers $Headers -Body $Body
$content = ConvertFrom-Json -InputObject $response.Content
Write-VerboseLog -VerboseInput $content -PreMessage 'Invoke-FalconAuth - $content:'

if ([string]::IsNullOrEmpty($content.access_token)) {
$message = 'Unable to authenticate to the CrowdStrike Falcon API. Please check your credentials and try again.'
throw $message
}

if ($GetAccessToken -eq $true){
Write-Output $content.access_token | out-host
exit
Expand Down
2 changes: 1 addition & 1 deletion powershell/install/falcon_windows_uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ begin {
Write-Output $content.access_token | out-host
exit
}

$Headers.Add('Authorization', "bearer $($content.access_token)")
}
catch {
Expand Down

0 comments on commit cf70207

Please sign in to comment.