set ssh enabled in ssh helper script

old-commit-hash: b7daab0ee07c6bdf0ff1cdbf93de08fe02be3236
This commit is contained in:
Comma Device
2023-05-15 19:32:40 -07:00
parent 63794374e9
commit 9bdbb993ea
+4 -2
View File
@@ -14,8 +14,10 @@ if __name__ == "__main__":
keys = requests.get(f"https://github.com/{username}.keys", timeout=10)
if keys.status_code == 200:
Params().put("GithubSshKeys", keys.text)
Params().put("GithubUsername", username)
params = Params()
params.put_bool("SshEnabled", True)
params.put("GithubSshKeys", keys.text)
params.put("GithubUsername", username)
print("Setup ssh keys successfully")
else:
print("Error getting public keys from github")