Do not replace newline with tr

This commit is contained in:
Rezart Qelibari
2022-03-01 14:18:31 +01:00
parent 68c7b399c5
commit df35017435

View File

@@ -7,7 +7,7 @@ function getDefaultFullname() {
}
function getDefaultUsername() {
local username="`getDefaultFullname | tr '[:upper:]' '[:lower:]' | tr -C '[:alnum:]' '-'`"
local username="`getDefaultFullname | tr '[:upper:]' '[:lower:]' | tr -C '[:alnum:]\n' '-'`"
lop debug 'Default username based on current computer name is: '"$username"
print "${username}"
}