From ee4044e34aa5af699c4bdacb7ff131a79c14ea82 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 15 Apr 2017 13:14:17 -0500 Subject: [PATCH] try using sftp --- scripts/deploy.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 383b6368d..a155b6834 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -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