Skip to content

Commit

Permalink
Start-Process
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Sep 29, 2024
1 parent bc832e2 commit f450806
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions functions/ToolScripts/emuDeckSaveSync.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,17 @@ function cloud_sync_config($cloud_sync_provider, $token){



$pass= $($password.cloud_token)
$ofuspass= $($password.cloud_token)
$user=$($parts[0])
setSetting "cs_user" "cs_$user\"

Get-ChildItem $savesPath -Recurse -Directory | ForEach-Object {
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
Expand Down

0 comments on commit f450806

Please sign in to comment.