aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.bash_utils/file.sh
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-08-20 00:08:42 +0200
committerEgor Tensin <egor@tensin.name>2025-08-20 00:08:42 +0200
commit57f26fd975501cb93ba7a8af9a38ea795f16f616 (patch)
tree414c9baf4a96a7e019ac654db7b099cab8e1c90f /%HOME%/.bash_utils/file.sh
parentbash: remove alternatives.sh (diff)
downloadlinux-home-57f26fd975501cb93ba7a8af9a38ea795f16f616.tar.gz
linux-home-57f26fd975501cb93ba7a8af9a38ea795f16f616.zip
file.sh: switch to my pastebin
Diffstat (limited to '')
-rw-r--r--%HOME%/.bash_utils/file.sh4
1 files changed, 1 insertions, 3 deletions
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/
)