From 57f26fd975501cb93ba7a8af9a38ea795f16f616 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 20 Aug 2025 00:08:42 +0200 Subject: file.sh: switch to my pastebin --- %HOME%/.bash_utils/file.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '%HOME%/.bash_utils') diff --git a/%HOME%/.bash_utils/file.sh b/%HOME%/.bash_utils/file.sh index 9bc28e2..94d297d 100644 --- a/%HOME%/.bash_utils/file.sh +++ b/%HOME%/.bash_utils/file.sh @@ -49,7 +49,5 @@ pastebin() ( local path="$1" - # Use the .txt file extension so that when you open a link, it displays - # the contents instead of downloading. - curl -sS --connect-timeout 5 -F "file=@$path;filename=.txt" https://x0.at/ + curl -sS --connect-timeout 5 -X PUT --data-binary "@$path" https://paste.tensin.name/ ) -- cgit v1.2.3