Skip to content

Commit

Permalink
Merge pull request #106 from aaronparker/spelling
Browse files Browse the repository at this point in the history
Fix spelling in output messages
  • Loading branch information
NickolajA authored Sep 2, 2023
2 parents c898faa + 09c2327 commit 001b703
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Private/Expand-IntuneWin32AppCompressedFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Expand-IntuneWin32AppCompressedFile {
}
}
catch [System.Exception] {
Write-Warning -Message "An error occurred while extracing '$($FileName)' from '$($FilePath)' file. Error message: $($_.Exception.Message)"
Write-Warning -Message "An error occurred while extracting '$($FileName)' from '$($FilePath)' file. Error message: $($_.Exception.Message)"
}
}
catch [System.Exception] {
Expand Down
4 changes: 2 additions & 2 deletions Public/Add-IntuneWin32AppDependency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ function Add-IntuneWin32AppDependency {
}
else {
$DependencyItems = -join@($Dependency.targetId, ", ")
Write-Warning -Message "A Win32 app cannot be used to dependend on itself, please specify a valid array or single object for dependency"
Write-Warning -Message "A Win32 app cannot be used to dependant on itself, please specify a valid array or single object for dependency"
Write-Warning -Message "Win32 app with ID '$($Win32AppID)' is set as parent for dependency configuration, and was also found in child items: $($DependencyItems)"
}
}
else {
Write-Warning -Message "Existing supersedence relation configuration exists for Win32 app, dependency is not allowed to be configured at this point"
Write-Warning -Message "Existing supersedence relationship exists for Win32 app, dependency is not allowed to be configured at this point"
}
}
else {
Expand Down
4 changes: 2 additions & 2 deletions Public/Expand-IntuneWin32AppPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function Expand-IntuneWin32AppPackage {

try {
# Open source filestream for read-only
Write-Verbose -Message "Attepmting to open extracted .intunewin file: $($ExtractedIntuneWinFile)"
Write-Verbose -Message "Attempting to open extracted .intunewin file: $($ExtractedIntuneWinFile)"
[System.IO.FileStream]$FileStreamSource = [System.IO.File]::Open($ExtractedIntuneWinFile, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::None)
$FileStreamSourceSeek = $FileStreamSource.Seek(48l, [System.IO.SeekOrigin]::Begin)

Expand Down Expand Up @@ -171,7 +171,7 @@ function Expand-IntuneWin32AppPackage {
}
}
catch [System.Exception] {
Write-Warning -Message "An error occurred while extracing encoded .intunewin file from inside Contents folder of the Win32 application package. Error message: $($_.Exception.Message)"
Write-Warning -Message "An error occurred while extracting encoded .intunewin file from inside Contents folder of the Win32 application package. Error message: $($_.Exception.Message)"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Public/Get-IntuneWin32AppMetaData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function Get-IntuneWin32AppMetaData {
}
Process {
try {
# Attemp to open compressed .intunewin archive file from parameter input
# Attempt to open compressed .intunewin archive file from parameter input
$IntuneWin32AppFile = [System.IO.Compression.ZipFile]::OpenRead($FilePath)

# Attempt to extract meta data from .intunewin file
Expand Down
2 changes: 1 addition & 1 deletion Public/New-IntuneWin32AppPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function New-IntuneWin32AppPackage {
}
}
else {
Write-Warning -Message "Unexpect error occurred while packaging Win32 app. Return code from invocation: $($PackageInvocation.ExitCode)"
Write-Warning -Message "Unexpected error occurred while packaging Win32 app. Return code from invocation: $($PackageInvocation.ExitCode)"
}
}
}
Expand Down

0 comments on commit 001b703

Please sign in to comment.