diff options
Diffstat (limited to '.local/bin')
-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 |