summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-20 20:28:24 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-20 20:28:24 +0100
commit9930de9b840b71273264c07f744d3c7ad6401847 (patch)
treed3aadb2203a97acf4dc84a2dbd761092a68c3b55
parentf840844e9fa08418666a345c9018047c73ef72bb (diff)
parent05ab2138b70be840cd7f7629840ecdf454fb566e (diff)
Merge branch 'master' of github.com:Mango0x45/dotfiles
-rwxr-xr-x.local/bin/up4
1 files changed, 1 insertions, 3 deletions
diff --git a/.local/bin/up b/.local/bin/up
index 26afee2..b224ee4 100755
--- a/.local/bin/up
+++ b/.local/bin/up
@@ -1,9 +1,7 @@
#!/usr/local/bin/andy
func upload file {
- if test $file = '-' {
- set file /dev/stdin
- }
+ test $file != '-' || set file /dev/stdin
curl (
--retry-all-errors
-X POST