Skip to content

Commit cf036de

Browse files
authored
Trim whitespace characters from passwords read from command result (#1871)
1 parent 7deb2e6 commit cf036de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/config/src/main/scala/scala/cli/config/PasswordOption.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object PasswordOption extends LowPriorityPasswordOption {
7676

7777
import sys.process._
7878
val res = command.!!<
79-
Secret(res) // should we trim that?
79+
Secret(res.trim)
8080
}
8181
def asString: Secret[String] = {
8282
val json = writeToString(command.toList)(commandCodec)

0 commit comments

Comments
 (0)