mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
mktemp fails on Peppermint 4 Linux #399
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 @CalumJEadie on GitHub.
Steps to recreate.
Running on Peppermint 4 Linux.
What's going wrong?
In the version of mktemp on Peppermint 4 Linux, template requires at least 3 consecutive XXX's.
Workaround
So the following workaround works.
transfer() {
# write to output to tmpfile because of progress bar
tmpfile=$( mktemp -t transferXXX )
curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile;
cat $tmpfile;
rm -f $tmpfile;
}
alias transfer=transfer
@nl5887 commented on GitHub:
Thanks!
@CalumJEadie commented on GitHub:
You're welcome! Thanks for looking into it so quickly!