From 4000882a0bb2769a066e2b88dbe8007c1f77074d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 19 Dec 2023 13:13:54 +0100 Subject: up: Use a short conditional --- .local/bin/up | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/up b/.local/bin/up index 71da6b5..26afee2 100755 --- a/.local/bin/up +++ b/.local/bin/up @@ -14,9 +14,7 @@ func upload file { } set TOKEN `vlt raw Miscellaneous 'Mpaste (Key)' -if test $#args -lt 2 { - set args $args - -} +test $#args -ge 2 || set args $args - for $args[1..] { async upload $_ } -- cgit v1.2.3