Debug fix
This commit is contained in:
18
install.ps1
18
install.ps1
@@ -157,35 +157,35 @@ do {
|
||||
Write-Host "Löschen des default Powershell profiles..." -ForegroundColor Blue
|
||||
if ((Test-Path "~/Documents/PowerShell/profile.ps1" -PathType Leaf) -eq $True) {
|
||||
Remove-Item -Force "~/Documents/PowerShell/profile.ps1"
|
||||
Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green
|
||||
Write-Host "Powershell config ~/Documents/PowerShell/profile.ps1 erfolgreich gelöscht." -ForegroundColor Green
|
||||
Try {
|
||||
New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
|
||||
Write-Host "Powershell config erfolgreich verlinkt."
|
||||
Write-Host "Powershell config ~/Documents/PowerShell/profile.ps1 erfolgreich verlinkt."
|
||||
}
|
||||
Catch {
|
||||
Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red
|
||||
Write-Host "Probleme beim verlinken der Powershell config ~/Documents/PowerShell/profile.ps1 " -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
if ((Test-Path "~/Documents/WindowsPowerShell/profile.ps1" -PathType Leaf) -eq $True) {
|
||||
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
|
||||
Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green
|
||||
Write-Host "Powershell config ~/Documents/WindowsPowerShell/profile.ps1 erfolgreich gelöscht." -ForegroundColor Green
|
||||
Try {
|
||||
New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
|
||||
Write-Host "Powershell config erfolgreich verlinkt."
|
||||
Write-Host "Powershell config ~/Documents/WindowsPowerShell/profile.ps1 erfolgreich verlinkt."
|
||||
}
|
||||
Catch {
|
||||
Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red
|
||||
Write-Host "Probleme beim verlinken der Powershell config ~/Documents/PowerShell/profile.ps1" -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
if ((Test-Path "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1" -PathType Leaf) -eq $True) {
|
||||
Remove-Item -Force "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1"
|
||||
Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green
|
||||
Write-Host "Powershell ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 config erfolgreich gelöscht." -ForegroundColor Green
|
||||
Try {
|
||||
New-Item -Path "~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
|
||||
Write-Host "Powershell config erfolgreich verlinkt."
|
||||
Write-Host "Powershell config ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 erfolgreich verlinkt."
|
||||
}
|
||||
Catch {
|
||||
Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red
|
||||
Write-Host "Probleme beim verlinken der Powershell config ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 ." -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
# Powershell Modul für Updates
|
||||
|
||||
Reference in New Issue
Block a user