ooshutup10 angepasst.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#Updatet all the things
|
||||
function Update {
|
||||
Das gute Write-Host "Beginne mit dem Update aller Pakete..."
|
||||
Write-Host "Beginne mit dem Update aller Pakete..."
|
||||
# Winget upgrades ausführen
|
||||
winget upgrade --all
|
||||
# ooshutup10 ausführen. Manchmal werden settings nach Windos updates zurückgesetzt
|
||||
@@ -18,7 +18,6 @@ Das gute Write-Host "Beginne mit dem Update aller Pakete..."
|
||||
)
|
||||
try {
|
||||
$oldVersions = Get-InstalledModule -Name $ModuleName -AllVersions -ErrorAction Stop | Where-Object { $_.Version -ne $GalleryVersion }
|
||||
|
||||
foreach ($oldVersion in $oldVersions) {
|
||||
Write-Host -ForegroundColor Cyan "$ModuleName - Uninstall previous version ($($oldVersion.Version))"
|
||||
if (-not($SimulationMode)) {
|
||||
@@ -38,7 +37,6 @@ Das gute Write-Host "Beginne mit dem Update aller Pakete..."
|
||||
else {
|
||||
$modules = Get-InstalledModule
|
||||
}
|
||||
|
||||
foreach ($module in $modules.Name) {
|
||||
if ($ExcludedModules -contains $module) {
|
||||
Write-Host -ForegroundColor Yellow "Module $module is excluded from the update process"
|
||||
|
||||
@@ -96,7 +96,7 @@ do {
|
||||
curl.exe -s "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -o OOSU10.exe
|
||||
Write-Host "OOshutup10 erfolgreich heruntergeladen." -ForegroundColor Green
|
||||
Write-Host "Versuche OOshutup10 config einzulesen..." -ForegroundColor Blue
|
||||
./OOSU10.exe $HOME/.winconfig/ooshutup10/ooshutup10.cfg /quiet
|
||||
./OOSU10.exe $HOME\.winconfig\configs\ooshutup10\ooshutup10.cfg /quiet
|
||||
Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green
|
||||
}
|
||||
Catch {
|
||||
|
||||
Reference in New Issue
Block a user