summaryrefslogtreecommitdiff
path: root/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli.py')
-rwxr-xr-xcli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli.py b/cli.py
index 9c0f4fb..fd0644d 100755
--- a/cli.py
+++ b/cli.py
@@ -166,7 +166,9 @@ def uninstall():
@cli.command()
def upload():
dist = Path('dist')
- dist.rmdir_p()
+ if dist.exists():
+ dist.rmdir_p()
+ dist.makedirs_p()
sh('python3 setup.py bdist_wheel')
sh('twine upload dist/*')