From 28115f35068fa2d7a17216f18948459684d5664f Mon Sep 17 00:00:00 2001 From: Ravinou Date: Tue, 5 Sep 2023 22:07:17 +0200 Subject: [PATCH] fix: missing unix_user in quickcommand --- Components/Repo/QuickCommands/QuickCommands.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Components/Repo/QuickCommands/QuickCommands.js b/Components/Repo/QuickCommands/QuickCommands.js index bccd985..ee397a3 100644 --- a/Components/Repo/QuickCommands/QuickCommands.js +++ b/Components/Repo/QuickCommands/QuickCommands.js @@ -10,7 +10,6 @@ export default function QuickCommands(props) { //Needed to generate command for borg over LAN instead of WAN if env vars are set and option enabled. let HOSTNAME; let SSH_SERVER_PORT; - let UNIX_USER; if ( props.lanCommand && wizardEnv.HOSTNAME_LAN && @@ -31,7 +30,7 @@ export default function QuickCommands(props) { // Asynchronously call copy to clipboard navigator.clipboard .writeText( - `borg init -e repokey-blake2 ssh://${UNIX_USER}@${HOSTNAME}:${SSH_SERVER_PORT}/./${props.repositoryName}` + `borg init -e repokey-blake2 ssh://${wizardEnv.UNIX_USER}@${HOSTNAME}:${SSH_SERVER_PORT}/./${props.repositoryName}` ) .then(() => { // If successful, update the isCopied state value @@ -51,8 +50,8 @@ export default function QuickCommands(props) {
Copied !
) : (
- borg init -e repokey-blake2 ssh://{UNIX_USER}@{HOSTNAME}: - {SSH_SERVER_PORT}/./ + borg init -e repokey-blake2 ssh://{wizardEnv.UNIX_USER}@ + {HOSTNAME}:{SSH_SERVER_PORT}/./ {props.repositoryName}
)}