mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
Merge pull request #368 from FrostyX/init-path-with-space
Use mkpath instead of running mkdir -p command
This commit is contained in:
commit
e3173db770
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue