Update
CI / Backend tests (push) Successful in 2m15s
CI / Frontend build & lint (push) Successful in 22s

This commit is contained in:
2026-10-02 00:34:05 -05:00
parent 4889c5c355
commit bf1d75aca8
2 changed files with 14 additions and 2 deletions
+9 -1
View File
@@ -39,6 +39,9 @@ function Get-InstalledConfigValue {
param([string]$Name)
if (-not (Test-Path -LiteralPath $configFile)) { return $null }
$content = Get-Content -LiteralPath $configFile -Raw
# Ignore commented-out lines: the config ships an example token line, and
# matching it would make us probe with the placeholder as a real token.
$content = (@($content -split "`r?`n") | Where-Object { $_ -notmatch '^\s*#' }) -join "`n"
$rx = '\$env:' + $Name + ' = ''([^'']*)'''
if ($content -match $rx) { return $Matches[1] }
return $null
@@ -142,8 +145,13 @@ if (-not $NoProfilePatch) {
$markerBegin,
'# Random J621 library image as the fastfetch logo (extras/powershell_greeting).',
'$j621GreetingScript = "$env:APPDATA\j621Greeting\J621Greeting.ps1"',
'if (Test-Path -LiteralPath $j621GreetingScript) { . $j621GreetingScript }',
'# Run it again any time with: greeting',
'function greeting {',
' if (-not (Get-Command Show-J621Greeting -ErrorAction Ignore) -and (Test-Path -LiteralPath $j621GreetingScript)) { . $j621GreetingScript }',
' Show-J621Greeting',
'}',
'if ((Test-Path -LiteralPath $j621GreetingScript) -and [Environment]::UserInteractive -and -not [Console]::IsOutputRedirected) {',
' . $j621GreetingScript',
' Show-J621Greeting',
'}',
$markerEnd