Skip to content

Commit

Permalink
set progress on deploy script to avoid timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofhyphens committed Jun 8, 2020
1 parent 1bd2299 commit 3ad231a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/deploy/sftp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ 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=$?
if [ $? -eq 1 ]; then
echo "Error with SFTP"
exit $result;
fi
rm $tmpfile
done
else
echo "$KEY is not available, not deploying."
Expand Down

0 comments on commit 3ad231a

Please sign in to comment.