mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2025-01-16 13:20:00 +01:00
scripts: continious_upload: upload to original transfer.sh
This commit is contained in:
parent
66db69862f
commit
3f014fde73
@ -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…
x
Reference in New Issue
Block a user