From 2c98bbacc8db3b251e1679f9da84cf1f5ed5726a Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Tue, 15 Oct 2024 13:29:10 -0400 Subject: update ~/bin --- bin/pastebin | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/pastebin') diff --git a/bin/pastebin b/bin/pastebin index 46be94a..87d26cf 100755 --- a/bin/pastebin +++ b/bin/pastebin @@ -14,7 +14,7 @@ while getopts e:h opt; do cat <<-EOF Usage: ${0##*/} [-e EXPIRES] [FILE] -Upload FILE (or stdin) to 0x0.st and print the URL +Upload FILE (or stdin) to envs.sh and print the URL -e EXPIRES Set the expiration time, either hours or epoch milliseconds EOF @@ -34,7 +34,6 @@ fi file="${1:-/dev/stdin}" [ "$file" = '-' ] && file="/dev/stdin" -url="$(curl -fsS -F file=@"$file" ${expires:+-F expires="$expires"} https://0x0.st)" +url="$(curl -fsS -F file=@"$file" ${expires:+-F expires="$expires"} https://envs.sh)" printf '%s\n' "$url" wl-copy "$url" -xdg-open "$url" -- cgit v1.2.3