summaryrefslogtreecommitdiff
path: root/.local/bin/up
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/up')
-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