summaryrefslogtreecommitdiff
path: root/.local/bin/up
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-19 13:13:54 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-19 13:13:54 +0100
commit4000882a0bb2769a066e2b88dbe8007c1f77074d (patch)
treecafb09b10d74f84bf3ebfa499ee06a37a5627d4d /.local/bin/up
parent7bc08779dca802151d3ac84c7adcd3e034125d11 (diff)
up: Use a short conditional
Diffstat (limited to '.local/bin/up')
-rwxr-xr-x.local/bin/up4
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 $_
}