We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bea384 commit 0183565Copy full SHA for 0183565
Types/PipeScript/get_Template.ps1
@@ -0,0 +1,12 @@
1
+$potentialTemplatePaths =
2
+ @(
3
+ $this.Source -replace '\.ps1$', '.ps.ps1'
4
+ $this.Source -replace '\.ps1$', '.ps1.ps1'
5
+ )
6
+
7
+foreach ($potentialTemplatePath in $potentialTemplatePaths ) {
8
+ if (Test-Path $potentialTemplatePath) {
9
+ return (Get-PipeScript -PipeScriptPath $potentialTemplatePath)
10
+ }
11
+}
12
0 commit comments