Skip to content

Commit

Permalink
Merge pull request #444 from cherylking/fixDockerRunCmd
Browse files Browse the repository at this point in the history
Trim user id before adding to docker run command
  • Loading branch information
cherylking authored Mar 6, 2024
2 parents 7c6b726 + 36bd2c5 commit 96c11a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@ private void addUserId(List<String> commandElements) {
String id = runCmd("id -u");
if (id != null) {
commandElements.add("--user");
commandElements.add(id);
commandElements.add(id.trim());
}
} catch (IOException e) {
// can't get user id. runCmd has printed an error message.
Expand Down

0 comments on commit 96c11a7

Please sign in to comment.