Skip to content

Commit

Permalink
HADOOP-19305: Fix ProcessEnvironment ClassCastException in Shell.java
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbutao committed Oct 10, 2024
1 parent dc56fc3 commit 3e4803c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,9 @@ private void runCommand() throws IOException {
builder.environment().clear();
}

builder.environment().putAll(this.environment);
if (!environment.isEmpty()) {
builder.environment().putAll(this.environment);
}

if (dir != null) {
builder.directory(this.dir);
Expand Down

0 comments on commit 3e4803c

Please sign in to comment.