Commit efd93d03 authored by Kai Willadsen's avatar Kai Willadsen

maint: Make not uploading actually work

parent 000a5c9f
......@@ -375,8 +375,11 @@ def tag():
@cli.command()
@click.argument('path', type=click.Path(exists=True))
def upload(path):
click.confirm(
'\nUpload %s to %s?' % (path, UPLOAD_SERVER), default=True, abort=False)
confirm = click.confirm(
'\nUpload %s to %s?' % (path, UPLOAD_SERVER), default=True,
abort=False)
if not confirm:
return
cmd = ['scp', path, UPLOAD_SERVER + ':']
call_with_output(cmd, timeout=120)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment