Make sure the app is not cleaned up if relative path is provided (#289)

This commit is contained in:
Mykola Mokhnach
2018-12-04 18:07:52 +01:00
committed by GitHub
parent 749db05add
commit df80b7cd2b
+3 -3
View File
@@ -173,9 +173,9 @@ async function configureApp (app, supportedAppExtensions) {
logger.info(`Unzipped local app to '${newApp}'`);
} else if (!path.isAbsolute(newApp)) {
newApp = path.resolve(process.cwd(), newApp);
logger.warn(`The current application path '${app}' is relative, ` +
`which might cause further issues. The path has been rewritten to '${newApp}' ` +
`in order to avoid them`);
logger.warn(`The current application path '${app}' is not absolute ` +
`and has been rewritten to '${newApp}'. Consider using absolute paths rather than relative`);
app = newApp;
}
verifyAppExtension(newApp, supportedAppExtensions);