mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
tweak deploy script
This commit is contained in:
parent
2be037a67d
commit
1ce9e50efe
1 changed files with 4 additions and 6 deletions
|
|
@ -2,9 +2,7 @@
|
|||
set localdir=/home/travis/build/collinbarrett/FilterLists/src/FilterLists.Api/bin/Release/netcoreapp1.1/
|
||||
set ftpdir=/var/www/api.filterlists
|
||||
|
||||
setlocal enableDelayedExpansion
|
||||
|
||||
for /F %%x in ('dir /B/D %localdir%') do (
|
||||
set FILENAME=%localdir%\%%x
|
||||
curl -T !FILENAME! sftp://$FTP_HOST/%ftpdir%/ --user $FTP_USER:$FTP_PASSWORD
|
||||
)
|
||||
for file in %localdir%*
|
||||
do
|
||||
curl -T ${file} sftp://$FTP_HOST%ftpdir%/${file} --user $FTP_USER:$FTP_PASSWORD
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue