diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-12-20 09:46:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 09:46:33 +0100 |
commit | 05ab2138b70be840cd7f7629840ecdf454fb566e (patch) | |
tree | 89e366f25c6d331830d9ac6d1ab808d7b3af8f88 | |
parent | 4000882a0bb2769a066e2b88dbe8007c1f77074d (diff) |
up: Use a short conditional
-rwxr-xr-x | .local/bin/up | 4 |
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 |