This repository was archived by the owner on Jan 19, 2021. It is now read-only.
File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -100,19 +100,26 @@ if($ConfigurationName -like "Debug*")
100
100
" Release15" {
101
101
Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShell2013.psd1" - Destination " $DestinationFolder "
102
102
Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.2013.Commands.Format.ps1xml" - Destination " $DestinationFolder "
103
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShell2013Aliases.psm1" - Destination " $DestinationFolder "
103
+ if (Test-Path - Path " $TargetDir \ModuleFiles\SharePointPnPPowerShell2013Aliases.psm1" )
104
+ {
105
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShell2013Aliases.psm1" - Destination " $DestinationFolder "
106
+ }
104
107
}
105
108
" Release16" {
106
109
Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShell2016.psd1" - Destination " $DestinationFolder "
107
110
Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.2016.Commands.Format.ps1xml" - Destination " $DestinationFolder "
108
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShell2016Aliases.psm1" - Destination " $DestinationFolder "
109
-
111
+ if (Test-Path - Path " $TargetDir \ModuleFiles\SharePointPnPPowerShell2016Aliases.psm1" )
112
+ {
113
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShell2016Aliases.psm1" - Destination " $DestinationFolder "
114
+ }
110
115
}
111
116
" Release" {
112
117
Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnline.psd1" - Destination " $DestinationFolder "
113
118
Copy-Item " $TargetDir \ModuleFiles\SharePointPnP.PowerShell.Online.Commands.Format.ps1xml" - Destination " $DestinationFolder "
114
- Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnlineAliases.psm1" - Destination " $DestinationFolder "
115
-
119
+ if (Test-Path - Path " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnlineAliases.psm1" )
120
+ {
121
+ Copy-Item " $TargetDir \ModuleFiles\SharePointPnPPowerShellOnlineAliases.psm1" - Destination " $DestinationFolder "
122
+ }
116
123
}
117
124
}
118
125
}
You can’t perform that action at this time.
0 commit comments