Skip to content

Commit

Permalink
Trim user id before adding to docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Mar 6, 2024
1 parent 7c6b726 commit 36bd2c5
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 36bd2c5

Please sign in to comment.