Skip to content

Commit

Permalink
refactor: Trim product version in Update-SmartProjects.IsoBuster.ps1
Browse files Browse the repository at this point in the history
The `Update-SmartProjects.IsoBuster.ps1` script has been modified to trim the product version retrieved from the file. This change ensures that any leading or trailing whitespace is removed from the version information.
  • Loading branch information
Utesgui authored May 10, 2024
1 parent d975b0c commit cb9ac51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Update-SmartProjects.IsoBuster.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $latestVersionUrl = $url -split " " | Select-Object -First 1
$DownloadFileName = "IsoBuster_installer.exe"
Invoke-WebRequest -Uri $latestVersionUrl -OutFile $DownloadFileName
$file = Get-ChildItem -Path $DownloadFileName
$versionInfo = $file.VersionInfo.ProductVersion
$versionInfo = $file.VersionInfo.ProductVersion.trim()

if ($null -eq $versionInfo) {
Write-Host "Could not find version info in file"
Expand Down

0 comments on commit cb9ac51

Please sign in to comment.