Skip to content
Permalink
Browse files

Using curl instead of lftp

  • Loading branch information...
Bara committed Feb 19, 2019
1 parent fee2bea commit 13680d40efd37d9e3b3433f54d0ba1887e34345d
Showing with 12 additions and 5 deletions.
  1. +2 −1 .travis.yml
  2. +10 −4 ci/upload.sh
@@ -6,7 +6,8 @@ language: c
addons:
apt:
packages:
- lftp
# - lftp
- curl
- lib32z1
- lib32stdc++6

@@ -16,14 +16,20 @@ UPDATE="$URL?version=$VERSION&key=$KEY"
echo -e "Go to build folder"
cd build

echo -e "Upload file"
lftp -c "open -u $USER,$PASS $HOST; put -O downloads/$2/ $FILE"
# echo -e "(LFTP) Upload file"
# lftp -c "open -u $USER,$PASS $HOST; put -O downloads/$2/ $FILE"

echo -e "(CURL) Upload file"
curl -T $FILE -u $USER:$PASS ftp://$HOST/downloads/$2/

echo -e "Add latest build"
mv $FILE $LATEST

echo -e "Upload latest build"
lftp -c "open -u $USER,$PASS $HOST; put -O downloads/ $LATEST"
# echo -e "(LFTP) Upload latest build"
# lftp -c "open -u $USER,$PASS $HOST; put -O downloads/ $LATEST"

echo -e "(CURL) UUpload latest build"
curl -T $LATEST -u $USER:$PASS ftp://$HOST/downloads/

echo -e "Update TTT Version"
wget -q $UPDATE -O version.log

0 comments on commit 13680d4

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.