Created
February 18, 2016 16:41
-
-
Save Dalmirog-zz/2a5a4d3a720e128b3711 to your computer and use it in GitHub Desktop.
rename cscfg file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $EnvironmentName = $OctopusParameters['Octopus.Environment.Name'] | |
| $cscfgFile = Get-ChildItem | ?{$_.Name -like "*cscfg"} | |
| if($cscfgFile.count -ne 1){ | |
| Write-error "Amount of .CSCFG files found: $($cscfgFile.count) . There should be (only) 1 CSCFG file" | |
| } | |
| Rename-Item -path $cscfgFile.FullName -NewName "ServiceConfiguration.$EnvironmentName.cscfg" -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment