mirror of
https://github.com/appium/appium.git
synced 2026-10-28 12:21:20 +08:00
fix poor use of path.resolve, and don't try to delete a root directory. signed off by @Jonahss
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user