From f45080692551f36b9a2611a3ff1093668b80f076 Mon Sep 17 00:00:00 2001 From: Dragoon Dorise Date: Mon, 30 Sep 2024 00:01:49 +0200 Subject: [PATCH] Start-Process --- functions/ToolScripts/emuDeckSaveSync.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/ToolScripts/emuDeckSaveSync.ps1 b/functions/ToolScripts/emuDeckSaveSync.ps1 index a540464d..8aa65100 100644 --- a/functions/ToolScripts/emuDeckSaveSync.ps1 +++ b/functions/ToolScripts/emuDeckSaveSync.ps1 @@ -269,7 +269,7 @@ function cloud_sync_config($cloud_sync_provider, $token){ - $pass= $($password.cloud_token) + $ofuspass= $($password.cloud_token) $user=$($parts[0]) setSetting "cs_user" "cs_$user\" @@ -277,7 +277,9 @@ function cloud_sync_config($cloud_sync_provider, $token){ createCloudFile $_.FullName } - & "$cloud_sync_bin" config update Emudeck-cloud host=cloud.emudeck.com user=cs_$user port=22 pass="$pass" + Start-Process $cloud_sync_bin -ArgumentList @" + config update Emudeck-cloud host=cloud.emudeck.com user=cs_$user port=22 pass="$ofuspass" +"@ -WindowStyle Maximized -Wait & $cloud_sync_bin mkdir "$cloud_sync_provider`:$cs_user`Emudeck\saves" & $cloud_sync_bin copy $savesPath "$cloud_sync_provider`:$cs_user`Emudeck\saves" --include "*.cloud" #Cleaning up