fix poor use of path.resolve, and don't try to delete a root directory. signed off by @Jonahss

This commit is contained in:
Jonathan Lipps
2015-12-02 17:34:18 -08:00
parent d5e18eb5e6
commit f5b7dba853
+1 -1
View File
@@ -110,7 +110,7 @@ async function unzipApp (zipPath, appExt) {
await fs.rimraf(line);
}
// now delete any existing zip payload
await fs.rimraf(path.resolve(path.dirname(zipPath), '/Payload*'));
await fs.rimraf(path.resolve(path.dirname(zipPath), 'Payload*'));
let output = await unzipFile(zipPath);
let relaxedRegStr = `(?:creating|inflating|extracting): (.+${appExt})/?`;
// in the strict regex, we check for an entry which ends with the