From 3ad231a36635c5c207bb9b2787163b2757e3498d Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 7 Jun 2020 22:57:30 -0500 Subject: [PATCH] set progress on deploy script to avoid timeouts --- package/deploy/sftp.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/deploy/sftp.sh b/package/deploy/sftp.sh index 7404d71b7..3cec99357 100755 --- a/package/deploy/sftp.sh +++ b/package/deploy/sftp.sh @@ -29,7 +29,8 @@ if [ -s $KEY ]; then for i in $FILES; do filepath=$i # this is expected to be an absolute path tmpfile=$(mktemp) - echo put $filepath > $tmpfile + echo progress > $tmpfile + echo put $filepath >> $tmpfile sftp -b $tmpfile -i$KEY "${UPLOAD_USER}@dl.slic3r.org:$DIR/" result=$? @@ -37,6 +38,7 @@ if [ -s $KEY ]; then echo "Error with SFTP" exit $result; fi + rm $tmpfile done else echo "$KEY is not available, not deploying."