We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 444a379 commit ab6a480Copy full SHA for ab6a480
tools/get.py
@@ -57,7 +57,8 @@ def unpack(filename, destination):
57
rename_to = re.match(r'^([a-z][^\-]*\-*)+', dirname).group(0).encode('ascii').strip('-')
58
if rename_to != dirname:
59
print('Renaming {0} to {1}'.format(dirname, rename_to))
60
- shutil.rmtree(rename_to)
+ if os.path.isdir(rename_to):
61
+ shutil.rmtree(rename_to)
62
shutil.move(dirname, rename_to)
63
64
def get_tool(tool):
0 commit comments