forked from Mirrors/nixos-infect
Removing whitespaces - end and start (#171)
This commit is contained in:
parent
bc72c2150c
commit
f66088f486
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ makeConf() {
|
|||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = [$(while read -r line; do
|
||||
line=$(echo -n "$line" | sed 's/\r//g')
|
||||
trimmed_line=$(echo -n "$line" | tr -d '[:space:]')
|
||||
trimmed_line=$(echo -n "$line" | xargs)
|
||||
echo -n "''$trimmed_line'' "
|
||||
done <<< "$keys")];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue