summaryrefslogtreecommitdiff
path: root/front/src/routes/home.jsx
diff options
context:
space:
mode:
authorSimponic <elizabeth.hunt@simponic.xyz>2023-02-11 23:37:47 -0700
committerSimponic <elizabeth.hunt@simponic.xyz>2023-02-11 23:37:47 -0700
commit7568b614447eb0d6f93a578837d1d5ea79e71936 (patch)
tree3849fb0f773f4fec0c77f32025048f3bd55a6a6e /front/src/routes/home.jsx
parente5ac660413fd8e2879706cfb06c476aae9164b31 (diff)
downloadchessh-7568b614447eb0d6f93a578837d1d5ea79e71936.tar.gz
chessh-7568b614447eb0d6f93a578837d1d5ea79e71936.zip
Format buildscripts (pretty unsubstantial but needed to happen :3)
Diffstat (limited to 'front/src/routes/home.jsx')
-rw-r--r--front/src/routes/home.jsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/front/src/routes/home.jsx b/front/src/routes/home.jsx
index d4ba22b..05129a2 100644
--- a/front/src/routes/home.jsx
+++ b/front/src/routes/home.jsx
@@ -3,11 +3,10 @@ import { Link } from "react-router-dom";
import { useAuthContext } from "../context/auth_context";
-const generateSSHConfig = (username) => `
-Host chessh
+const generateSSHConfig = (username) => `Host chessh
Hostname ${process.env.REACT_APP_SSH_SERVER}
Port ${process.env.REACT_APP_SSH_PORT}
- User "${username}"
+ User ${username.includes(" ") ? '"' + username + '"' : username}"
PubkeyAuthentication yes
`;