Browse Source

scripts: continious_upload: upload to original transfer.sh

pull/2/head
Alibek Omarov 3 years ago
parent
commit
3f014fde73
  1. 4
      scripts/continious_upload.sh

4
scripts/continious_upload.sh

@ -164,11 +164,11 @@ if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] || [ "$GITHUB_EVENT_NAME" == "pull
echo "Releases have already been uploaded to Artifactory, exiting" echo "Releases have already been uploaded to Artifactory, exiting"
exit 0 exit 0
else 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 rm -f ./uploaded-to
for FILE in "$@" ; do for FILE in "$@" ; do
BASENAME="$(basename "${FILE}")" 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 "$(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 echo -n "$(cat ./one-upload)\\n" >> ./uploaded-to # this way we get a \n but no newline
done done

Loading…
Cancel
Save