mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
try using sftp
This commit is contained in:
parent
f45ee42cf2
commit
ee4044e34a
1 changed files with 3 additions and 5 deletions
|
|
@ -1,9 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
sftp --password=$FTP_PASSWORD $FTP_USER@$FTP_HOST:$FTP_DIR
|
||||
for file in /home/travis/build/collinbarrett/FilterLists/src/FilterLists.Api/bin/Release/netcoreapp1.1/*
|
||||
do
|
||||
if [ "$file" != "appsettings.Production.json" ] && [ "$file" != "appsettings.Development.json" ]
|
||||
then
|
||||
echo "Uploading $f"
|
||||
curl -T ${file} ftp://$FTP_HOST$FTP_DIR${file} --user $FTP_USER:$FTP_PASSWORD
|
||||
fi
|
||||
echo "Uploading $file"
|
||||
put ${file}
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue