We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3d1ce commit 07cce61Copy full SHA for 07cce61
winfetch.ps1
@@ -357,7 +357,7 @@ if ($genconf -and (Test-Path $configPath)) {
357
if ($result -eq 0) { Remove-Item -Path $configPath } else { exit 1 }
358
}
359
360
-if (-not (Test-Path $configPath) -or ((Get-Item -Path $configPath).Length -eq 0)) {
+if (-not (Test-Path $configPath) -or [String]::IsNullOrWhiteSpace((Get-Content $configPath))) {
361
New-Item -Type File -Path $configPath -Value $defaultConfig -Force | Out-Null
362
if ($genconf) {
363
Write-Host "Saved default config to '$configPath'."
0 commit comments