This commit is contained in:
lda
2025-12-16 17:49:36 +07:00 Unverified
parent 73278074c5
commit c5c7fd8cca
4 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ try {
if (Test-Path $localStatic) {
# Assuming RemotePath is like /root/.bin/wakey, we want /root/.bin/static
# So we push 'static' directory to /root/.bin/
$remoteDir = Split-Path $RemotePath -Parent
$remoteDir = (Split-Path $RemotePath -Parent) -replace '\\', '/'
# Ensure remote dir exists (ssh mkdir -p)
Invoke-Ssh -Cmd "mkdir -p $remoteDir" -User $User -Remote $HostName -Pass $Pass -Quiet:$Quiet