mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
Print new line in transfer.sh #188
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @soulofmischief on GitHub.
The minified script offered on https://transfer.sh should have
printf "\n";appended to the end of the function, so that the next bash prompt is on a new line and not the same line as the returned URL.@soulofmischief commented on GitHub:
@aspacca https://github.com/dutchcoders/transfer.sh-web/pull/35
@paolafrancesca commented on GitHub:
@soulofmischief can you please refer to the file and line of code that has to be changed from the frontend repo: https://github.com/dutchcoders/transfer.sh-web/tree/master/src?
I guess it is somewhere here: https://github.com/dutchcoders/transfer.sh-web/blob/master/src/index.html
@stefanbenten commented on GitHub:
@JustAnotherArchivist Did you see the example alias/function for the linux terminal? That would essentially be what you want for manual usage. Please correct me if there is any other manual way that wouldnt work with that?
@stefanbenten commented on GitHub:
We could simply handle this with an additional header.
The usages that i know of, prefer the current version, for ease of automation.
@JustAnotherArchivist commented on GitHub:
This would certainly be useful for manual terminal usage with e.g. curl. I've long had a little script that essentially does
curl --upload-file ...; echofor this reason. However, the lack of a newline is great for automation as you'd otherwise have to strip it again to get the actual URL.@JustAnotherArchivist commented on GitHub:
@stefanbenten Yeah, I'm aware of that. I originally wrote my script to work around percent-encoding bugs (#213 and #215) and still use it to
sed 's,%40,@,g'because I prefer having the at sign in unencoded form. It also prints the deletion URL to stderr whereas it's normally silently swallowed.