mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-12-22 16:18:29 +03:00
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;
|
services.openssh.enable = true;
|
||||||
users.users.root.openssh.authorizedKeys.keys = [$(while read -r line; do
|
users.users.root.openssh.authorizedKeys.keys = [$(while read -r line; do
|
||||||
line=$(echo -n "$line" | sed 's/\r//g')
|
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'' "
|
echo -n "''$trimmed_line'' "
|
||||||
done <<< "$keys")];
|
done <<< "$keys")];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue