From fd93e37ebfd038435b26887d80166c2e8724bd04 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 30 Dec 2022 17:06:16 +0100 Subject: [PATCH] Diverses --- install.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.ps1 b/install.ps1 index 9b89ab4..dc57fdc 100644 --- a/install.ps1 +++ b/install.ps1 @@ -54,7 +54,7 @@ do { } } } '2' { - # Winget config installieren + # Winget config installieren. if (-not(Test-Path -Path '~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json' -PathType leaf)){ Write-Host "Lege Winget config an." -ForegroundColor Green New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null @@ -63,7 +63,8 @@ do { Write-Host "Lege Winget config an." -ForegroundColor Green Remove-Item "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null - } + } + # Software installieren. foreach ($utility in $toInstall) { $ergebnis = winget list --id $utility if ($ergebnis -eq "Es wurde kein installiertes Paket gefunden, das den Eingabekriterien entspricht.") { @@ -118,7 +119,7 @@ do { # Windows Terminal Settings Write-Host "Richte Windows Terminal config ein..." -ForegroundColor Blue Try { - Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/terminal/settings.json" + Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/terminal/settings.json" | Out-Null Write-Host "Windows Terminal config erfolgreich eingerichtet" -ForegroundColor Green } Catch { @@ -153,7 +154,7 @@ do { Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1" Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green Try { - New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" + New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null Write-Host "Powershell config erfolgreich verlinkt." } Catch {