diff --git a/src/main/java/io/openliberty/tools/common/plugins/util/DevUtil.java b/src/main/java/io/openliberty/tools/common/plugins/util/DevUtil.java index 11242d71..296afc9e 100644 --- a/src/main/java/io/openliberty/tools/common/plugins/util/DevUtil.java +++ b/src/main/java/io/openliberty/tools/common/plugins/util/DevUtil.java @@ -1837,7 +1837,7 @@ private void addUserId(List 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.