Skip to content

Commit

Permalink
Remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
day1player committed Sep 7, 2023
1 parent 9736c10 commit 30968e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions packages/common.vm/tools/vm.common/vm.common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ function VM-Remove-Appx-Package {
}
catch {
VM-Write-Log-Exception $_
}
}
} else {
VM-Write-Log "WARN" "[+] Installed $appName not found on the system."
}
Expand All @@ -919,7 +919,7 @@ function VM-Remove-Appx-Package {
}
catch {
VM-Write-Log-Exception $_
}
}
} else {
VM-Write-Log "WARN" "[+] Provisioned $appName not found on the system."
}
Expand Down Expand Up @@ -969,7 +969,7 @@ function VM-Disable-Scheduled-Task {
} else {
VM-Write-Log "ERROR" "[+] Scheduled task '$name' not found."
}

} catch {
VM-Write-Log "ERROR" "An error occurred while disabling the '$name' scheduled task. Error: $_"
}
Expand Down Expand Up @@ -1097,7 +1097,7 @@ function VM-Configure-Prompts {
return " "
}
"@

# Ensure profile file exists and append new content to it, not overwriting old content
if (!(Test-Path $profile)) {
New-Item -ItemType File -Path $profile -Force | Out-Null
Expand All @@ -1117,12 +1117,12 @@ function VM-Configure-Prompts {
} catch {
VM-Write-Log-Exception $_
}

}

function VM-Configure-PS-Logging {
if ($PSVersionTable -And $PSVersionTable.PSVersion.Major -ge 5) {
try {
try {
VM-Write-Log "INFO" "Enabling PowerShell Script Block Logging"

$psLoggingPath = 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\PowerShell'
Expand Down
4 changes: 2 additions & 2 deletions packages/debloat.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ try {
"Win10" { $config = Join-Path $packageToolsDir "win10.xml" }
"Win11" { $config = Join-Path $packageToolsDir "win11.xml" }
"Win11ARM" { $config = Join-Path $packageToolsDir "win11arm.xml"}
default {
VM-Write-Log "WARN" "Debloater unable to determine debloat config, applying win10.xml"
default {
VM-Write-Log "WARN" "Debloater unable to determine debloat config, applying win10.xml"
$config = Join-Path $packageToolsDir "win10.xml"
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/installer.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ try {

# Configure Desktop\Tools folder with a custom icon
if ($iconPath = Join-Path $Env:VM_COMMON_DIR "vm.ico" -Resolve) {
$folderPath = $Env:TOOL_LIST_DIR
$folderPath = $Env:TOOL_LIST_DIR
# Set the icon
if (Test-Path -Path $folderPath -PathType Container) {
# Full path to the desktop.ini file inside the folder
$desktopIniPath = Join-Path -Path $folderPath -ChildPath 'desktop.ini'

# Check if desktop.ini already exists
if (-Not (Test-Path -Path $desktopIniPath)) {
# Create an empty desktop.ini if it doesn't exist
Expand Down Expand Up @@ -95,7 +95,7 @@ try {
foreach ($package in $installedPackages){
VM-Write-Log "INFO" "Packages installed: $($package.Name) | $($package.Version)"
}

# Write each failed package to failure file
foreach ($package in $failures.Keys) {
VM-Write-Log "ERROR" "Failed to install: $package"
Expand Down

0 comments on commit 30968e0

Please sign in to comment.