scripts: continious_upload: upload to original transfer.sh

This commit is contained in:
Alibek Omarov 2021-11-27 06:24:13 +03:00
parent 66db69862f
commit 3f014fde73
1 changed files with 2 additions and 2 deletions

View File

@ -164,11 +164,11 @@ if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] || [ "$GITHUB_EVENT_NAME" == "pull
echo "Releases have already been uploaded to Artifactory, exiting"
exit 0
else
echo "Release uploading disabled for pull requests, uploading to transfersh.com instead"
echo "Release uploading disabled for pull requests, uploading to transfer.sh instead"
rm -f ./uploaded-to
for FILE in "$@" ; do
BASENAME="$(basename "${FILE}")"
curl --upload-file $FILE "https://transfersh.com/$BASENAME" > ./one-upload
curl --upload-file $FILE "https://transfer.sh/$BASENAME" > ./one-upload
echo "$(cat ./one-upload)" # this way we get a newline
echo -n "$(cat ./one-upload)\\n" >> ./uploaded-to # this way we get a \n but no newline
done