Skip to content

Commit d04142f

Browse files
committed
Dockerfile: fixed issue when GIT_USER_NAME is undefined.
1 parent a032e8a commit d04142f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PostSharp.Engineering.BuildTools/Docker/EpilogueComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ ARG GITDIRS
4949
} `
5050
} `
5151
}
52-
RUN git config --global user.name $env:GIT_USER_NAME; `
53-
git config --global user.email $env:GIT_USER_EMAIL;
52+
RUN if ( $env:GIT_USER_NAME ) { git config --global user.name $env:GIT_USER_NAME } `
53+
if ( $env:GIT_USER_EMAIL ) { git config --global user.email $env:GIT_USER_EMAIL }
5454
""" );
5555
}
5656

0 commit comments

Comments
 (0)