2023-03-15 03:31:30 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
if [ "$#" -ne 2 ]; then
|
|
|
|
echo "Usage: $0 SEARCH-ENGINE-URI-PREFIX {PATH | URI}" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
xdg-open "$1$(fiv --thumbnail-for-search large "$2" \
|
2024-04-22 07:37:58 +02:00
|
|
|
| curl --silent --show-error --form 'files[]=@-' https://uguu.se/upload \
|
|
|
|
| jq --raw-output '.files[] | .url | @uri')"
|