File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,9 @@ try {
329
329
$sp.Id
330
330
}
331
331
332
- # If the ServiceDirectory is an absolute path use the last directory name
333
- # ( e.g. D:\foo\bar\ -> bar)
334
- $serviceName = if (Split-Path - IsAbsolute $ServiceDirectory ) {
332
+ # If the ServiceDirectory has multiple segments use the last directory name
333
+ # e.g. D:\foo\bar -> bar or foo/bar -> bar
334
+ $serviceName = if (Split-Path $ServiceDirectory ) {
335
335
Split-Path - Leaf $ServiceDirectory
336
336
} else {
337
337
$ServiceDirectory
@@ -916,4 +916,4 @@ Run this in an Azure DevOps CI (with approrpiate variables configured) before
916
916
executing live tests. The script will output variables as secrets (to enable
917
917
log redaction).
918
918
919
- #>
919
+ #>
You can’t perform that action at this time.
0 commit comments