diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-12-19 13:13:54 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-12-19 13:13:54 +0100 |
commit | 4000882a0bb2769a066e2b88dbe8007c1f77074d (patch) | |
tree | cafb09b10d74f84bf3ebfa499ee06a37a5627d4d | |
parent | 7bc08779dca802151d3ac84c7adcd3e034125d11 (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 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 $_ } |