mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-10-05 15:18:27 +03:00
Removing whitespaces - end and start (#171)
This commit is contained in:
parent
bc72c2150c
commit
f66088f486
@ -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 New Issue
Block a user