bruh moment
whitespace/formatting diff
This commit is contained in:
@@ -3,14 +3,14 @@ $remote_home_folder = "your_default_user@1.2.3.4"
|
||||
$key = "your.private.key"
|
||||
|
||||
function TransferFile {
|
||||
param (
|
||||
[Parameter(Mandatory)]
|
||||
[string]$FileName,
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]$DestPath = ""
|
||||
)
|
||||
param (
|
||||
[Parameter(Mandatory)]
|
||||
[string]$FileName,
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]$DestPath = ""
|
||||
)
|
||||
|
||||
scp -i "${dirname}\${key}" "${dirname}\${FileName}" "${remote_home_folder}:${DestPath}"
|
||||
scp -i "${dirname}\${key}" "${dirname}\${FileName}" "${remote_home_folder}:${DestPath}"
|
||||
}
|
||||
|
||||
# backups
|
||||
|
||||
Reference in New Issue
Block a user