Skip to content

Commit

Permalink
Autofix again
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven committed Mar 6, 2024
1 parent 66f685d commit e029cc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function nightly_version($quiet = $false) {
function install_app($app, $architecture, $global, $suggested, $use_cache = $true, $check_hash = $true) {
$app, $manifest, $bucket, $url = Get-Manifest $app

if(!$manifest) {
abort "Couldn't find manifest for '$app'$(if($bucket) { " from '$bucket' bucket" } elseif($url) { " at '$url'" })."
if (!$manifest) {
abort "Couldn't find manifest for '$app'$(if ($bucket) { " from '$bucket' bucket" } elseif ($url) { " at '$url'" })."
}

$version = $manifest.version
Expand Down Expand Up @@ -108,9 +108,9 @@ function Start-Download ($url, $to, $cookies) {
} catch {
$e = $_.exception
if ($e.Response.StatusCode -eq 'Unauthorized') {
warn "Token might be misconfigured."
warn 'Token might be misconfigured.'
}
if($e.innerexception) { $e = $e.innerexception }
if ($e.innerexception) { $e = $e.innerexception }
throw $e
}
}
Expand Down Expand Up @@ -253,7 +253,7 @@ function Invoke-CachedAria2Download ($app, $version, $manifest, $architecture, $
$try_url = handle_special_urls $url
} catch {
if ($_.Exception.Response.StatusCode -eq 'Unauthorized') {
warn "Token might be misconfigured."
warn 'Token might be misconfigured.'
}
}
$urlstxt_content += "$try_url`n"
Expand Down

0 comments on commit e029cc6

Please sign in to comment.