@@ -29,7 +29,7 @@ content-length: 52
2929field: {B1A94FF0-6897-47C0-9C51-AA6ACB80B1F0}
3030name: Script
3131key: script
32- content-length: 6086
32+ content-length: 6206
3333
3434$stripsPath = 'core:\content\Applications\Content Editor\Ribbons\Strips'
3535
@@ -44,7 +44,7 @@ foreach($root in $roots){
4444 #Adding missing strips
4545 Get-Childitem $scriptLibPath | ? { $_.TemplateName -eq "PowerShell Script Library" } | % {
4646 $scriptLibrary = $_;
47- $strip = Get-Item "$stripsPath/$($scriptLibrary.Name)"
47+ $strip = Get-Item "$stripsPath/$($scriptLibrary.Name)" -ErrorAction SilentlyContinue
4848 if($strip -eq $null){
4949 Write-Host "Adding Strip '$($scriptLibrary.Name)'." -f Green
5050 $strip = New-Item -path "$stripsPath" -Name "$($scriptLibrary.Name)" -ItemType "System/Ribbon/Strip"
@@ -54,7 +54,7 @@ foreach($root in $roots){
5454 # Adding missing chunks
5555 Get-Childitem $scriptLibrary.ProviderPath | ForEach-Object {
5656 $chunkLibrary = $_
57- $chunk = Get-Item "$stripsPath/$($scriptLibrary.Name)/$($chunkLibrary.Name)"
57+ $chunk = Get-Item "$stripsPath/$($scriptLibrary.Name)/$($chunkLibrary.Name)" -ErrorAction SilentlyContinue
5858 if($chunk -eq $null){
5959 Write-Host "Adding Chunk '$($chunkLibrary.Name)'." -f Green
6060 $chunk = New-Item -path "$($strip.ProviderPath)" -Name "$($chunkLibrary.Name)" -ItemType "System/Ribbon/Chunk"
@@ -72,7 +72,7 @@ foreach($root in $roots){
7272 Get-Childitem $chunkLibrary.ProviderPath | ForEach-Object {
7373 $script = $_
7474 if($script.TemplateName -eq "PowerShell Script"){
75- $button = Get-Item "$($chunk.ProviderPath)/$($script.Name)/$($script.Name)"
75+ $button = Get-Item "$($chunk.ProviderPath)/$($script.Name)/$($script.Name)" -ErrorAction SilentlyContinue
7676 if($button -eq $null){
7777 $panel = New-Item -path "$($chunk.ProviderPath)" -Name "$($script.Name)" -ItemType "System/Ribbon/Panel"
7878 $panel.Type = "Cognifide.PowerShell.Client.Controls.ContentEditorRibbonPanel,Cognifide.PowerShell"
@@ -117,7 +117,7 @@ Get-Childitem $stripsPath | ForEach-Object {
117117 $message = [Sitecore.Web.UI.Sheer.Message]::Parse($null,$button.Click)
118118 $scriptDb = $message.Arguments["scriptDb"]
119119 $scriptId = $message.Arguments["script"];
120- $script = Get-Item "$($scriptDb):/" -Id $scriptId
120+ $script = Get-Item "$($scriptDb):/" -Id $scriptId -ErrorAction SilentlyContinue
121121 if($button.ID -eq $panel.Id)
122122 {
123123 $panel | remove-item -Recurse
@@ -160,7 +160,7 @@ Control/16x16/toolbar.png
160160----version----
161161language: en
162162version: 1
163- revision: 0d70bfd7-be3a-4bdf-b9cc-86884854bfcd
163+ revision: 64be6aec-c0c8-46b7-9ae2-7f5de25abd8a
164164
165165----field----
166166field: {25BED78C-4957-4165-998A-CA1B52F67497}
@@ -175,14 +175,14 @@ name: __Revision
175175key: __revision
176176content-length: 36
177177
178- 0d70bfd7-be3a-4bdf-b9cc-86884854bfcd
178+ 64be6aec-c0c8-46b7-9ae2-7f5de25abd8a
179179----field----
180180field: {D9CF14B1-FA16-4BA6-9288-E8A174D4D522}
181181name: __Updated
182182key: __updated
183- content-length: 15
183+ content-length: 34
184184
185- 20150820T230141
185+ 20150831T231817:635766598979241887
186186----field----
187187field: {BADD9CF9-53E0-4D0C-BCC0-2D784C282F6A}
188188name: __Updated by
0 commit comments