Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $releaseArray = @()
- if (![string]::IsNullOrWhitespace($release))
- {
- $releaseArray = $release.split("{|}", [System.StringSplitOptions]::RemoveEmptyEntries)
- $releaseArray.gettype() | Select-Object Name
- if($releaseArray.Count -gt 0) {
- $namePathArray = @{}
- foreach($namePath in $releaseArray) {
- $splitReleaseArray = $namePath.split("{,}", [System.StringSplitOptions]::RemoveEmptyEntries)
- $namePathArray.add($splitReleaseArray[0], $splitReleaseArray[1])
- }
- #here it echos propper hashtable
- $namePathArray.gettype() | Select-Object Name
- if($namePathArray.Count -gt 0) {
- #here it echos propper hashtable as well
- return $namePathArray
- }
- }
- }
- Name
- ----
- String[]
- test
- reorder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement