From 05ab2138b70be840cd7f7629840ecdf454fb566e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 20 Dec 2023 09:46:33 +0100 Subject: up: Use a short conditional --- .local/bin/up | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3