munki / munki-pkg

Repo for the munkipkg tool and example projects
Other
344 stars 72 forks source link

fixed ./payload/. does not exist error #58

Open ProjectTermina opened 2 years ago

ProjectTermina commented 2 years ago

munkipkg --sync would fail on pseudo-payload-free package projects cloned from git repositories because os.mkdir(./payload/.) would fail, because the parent directory of ./payload/., ./payload, did not exist. Fixed this by changing os.mkdir to os.makedirs, which creates directories recursively analogously to mkdir -p.