mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 06:52:03 +08:00
working on script for winscp
This commit is contained in:
parent
3d0e5bf351
commit
21aa301729
@ -42,4 +42,4 @@ on_success:
|
|||||||
on_failure:
|
on_failure:
|
||||||
- ps:
|
- ps:
|
||||||
on_finish:
|
on_finish:
|
||||||
- ps:
|
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
# UPLOAD_USER - user to upload to sftp server
|
# UPLOAD_USER - user to upload to sftp server
|
||||||
# KEY is assumed to be path to a ssh key for UPLOAD_USER
|
# KEY is assumed to be path to a ssh key for UPLOAD_USER
|
||||||
|
|
||||||
param (
|
Param(
|
||||||
[parameter(Mandatory=$true, ParameterSetName="dir")] [string]$DIR,
|
[string]$DIR,
|
||||||
[parameter(Mandatory=$true, ParameterSetName="key")] [string]$KEY,
|
[string]$KEY,
|
||||||
[parameter(Mandatory=$true, ParameterSetName="file")] [string]$FILES
|
[string]$FILE
|
||||||
)
|
)
|
||||||
UUSER=$env:UPLOAD_USER
|
UUSER=$env:UPLOAD_USER
|
||||||
winscp.exe scp://$UUSER@dl.slic3r.org:$DIR /hostkey=* /privatekey=$KEY /upload $FILES
|
winscp.exe scp://$UUSER@dl.slic3r.org:$DIR/ /hostkey=* /privatekey=$KEY /upload $FILES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user