fish: create tar verbosely in 0x0 function

This commit is contained in:
Nico 2025-06-28 23:23:37 +10:00
parent e5de86db01
commit b19af63a4b
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0

View file

@ -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