Skip to content

Commit

Permalink
stages/kickstart: quote ssh-key
Browse files Browse the repository at this point in the history
Surround the ssh key by quotes since it might contain spaces.
  • Loading branch information
gicmo authored and teg committed Aug 29, 2021
1 parent b430bd8 commit 3c56534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stages/org.osbuild.kickstart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def make_users(users: Dict) -> List[str]:

key = opts.get("key")
if key:
res.append(f"sshkey --username {name} {key}")
res.append(f'sshkey --username {name} "{key}"')

return res

Expand Down

0 comments on commit 3c56534

Please sign in to comment.