From e61336bfcc390103cd2fe059987c69e3688e9365 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 15 Apr 2017 12:36:39 -0500 Subject: [PATCH] tweak deploy.sh --- scripts/deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 9a8ac5bc3..ba9748559 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash for file in /home/travis/build/collinbarrett/FilterLists/src/FilterLists.Api/bin/Release/netcoreapp1.1/* do - curl -T ${file} sftp://$FTP_HOST$FTP_DIR${file} --user $FTP_USER:$FTP_PASSWORD -done \ No newline at end of file + 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 +done