Merge pull request #368 from FrostyX/init-path-with-space

Use mkpath instead of running mkdir -p command
This commit is contained in:
Jakub Kadlčík 2020-04-23 11:50:23 +02:00 committed by GitHub
commit e3173db770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -703,7 +703,7 @@ class InitModule(BaseCliModule):
propsfile = os.path.join(rel_eng_dir, TITO_PROPS)
if not os.path.exists(propsfile):
if not os.path.exists(rel_eng_dir):
getoutput("mkdir -p %s" % rel_eng_dir)
os.makedirs(rel_eng_dir)
print(" - created %s" % rel_eng_dir)
# write out tito.props
@ -726,7 +726,7 @@ class InitModule(BaseCliModule):
if not os.path.exists(readme):
if not os.path.exists(pkg_dir):
getoutput("mkdir -p %s" % pkg_dir)
os.makedirs(pkg_dir)
print(" - created %s" % pkg_dir)
# write out readme file explaining what pkg_dir is for