fish: create tar verbosely in 0x0 function
This commit is contained in:
parent
e5de86db01
commit
b19af63a4b
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
function 0x0 --description 'Uploads a file or folder to 0x0.st'
|
||||
if test -d "$argv"
|
||||
set TMPFILE "$(mktemp --suffix '.tar')"
|
||||
tar cf "$TMPFILE" "$argv"
|
||||
tar cvf "$TMPFILE" "$argv"
|
||||
curl -F file="@$TMPFILE" -F expires=24 https://0x0.st
|
||||
else
|
||||
curl -F file=@"$argv" -F expires=24 https://0x0.st
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue