File tree 1 file changed +2
-2
lines changed
src/Runner.Worker/Handlers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ public string ResolvePathForStepHost(string path)
110
110
111
111
// try to resolve path inside container if the request path is part of the mount volume
112
112
#if OS_WINDOWS
113
- if ( Container . MountVolumes . Exists ( x => path . StartsWith ( x . SourceVolumePath , StringComparison . OrdinalIgnoreCase ) ) )
113
+ if ( Container . MountVolumes . Exists ( x => ! string . IsNullOrEmpty ( x . SourceVolumePath ) && path . StartsWith ( x . SourceVolumePath , StringComparison . OrdinalIgnoreCase ) ) )
114
114
#else
115
- if ( Container . MountVolumes . Exists ( x => path . StartsWith ( x . SourceVolumePath ) ) )
115
+ if ( Container . MountVolumes . Exists ( x => ! string . IsNullOrEmpty ( x . SourceVolumePath ) && path . StartsWith ( x . SourceVolumePath ) ) )
116
116
#endif
117
117
{
118
118
return Container . TranslateToContainerPath ( path ) ;
You can’t perform that action at this time.
0 commit comments