Skip to content

Commit fe4f8ca

Browse files
committed
Remove only the mbed-os directory if the clone fails or was cancelled by user
1 parent 3720106 commit fe4f8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def new(name, tscm='git', depth=None, protocol=None):
990990
with cd(d_path):
991991
add(mbed_os_url, depth=depth, protocol=protocol)
992992
except:
993-
rmtree_readonly(d_path)
993+
rmtree_readonly(os.path.join(d_path, 'mbed-os'))
994994
raise
995995
if d_path:
996996
os.chdir(d_path)

0 commit comments

Comments
 (0)