diff options
author | Egor Tensin <egor@tensin.name> | 2025-08-20 00:08:42 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-08-20 00:08:42 +0200 |
commit | 57f26fd975501cb93ba7a8af9a38ea795f16f616 (patch) | |
tree | 414c9baf4a96a7e019ac654db7b099cab8e1c90f /%HOME%/.bash_utils/file.sh | |
parent | bash: remove alternatives.sh (diff) | |
download | linux-home-57f26fd975501cb93ba7a8af9a38ea795f16f616.tar.gz linux-home-57f26fd975501cb93ba7a8af9a38ea795f16f616.zip |
file.sh: switch to my pastebin
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.bash_utils/file.sh | 4 |
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/ ) |