summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-20 09:46:33 +0100
committerGitHub <noreply@github.com> 2023-12-20 09:46:33 +0100
commit05ab2138b70be840cd7f7629840ecdf454fb566e (patch)
tree89e366f25c6d331830d9ac6d1ab808d7b3af8f88 /.local/bin
parent4000882a0bb2769a066e2b88dbe8007c1f77074d (diff)
up: Use a short conditional
Diffstat (limited to '.local/bin')
-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