We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 524760f + 9e2ffd0 commit 98a7c48Copy full SHA for 98a7c48
lib/pip.js
@@ -97,8 +97,10 @@ function installRequirements() {
97
if (process.platform === 'linux') {
98
// Set the ownership of the .serverless/requirements folder to current user
99
pipCmd = quote(pipCmd);
100
- chownCmd = quote(['chown', '-R', `${process.getuid()}:${process.getgid()}`,
101
- '.serverless/requirements']);
+ const chownCmd = quote([
+ 'chown', '-R', `${process.getuid()}:${process.getgid()}`,
102
+ '.serverless/requirements',
103
+ ]);
104
pipCmd = ['/bin/bash', '-c', '"' + pipCmd + ' && ' + chownCmd + '"'];
105
}
106
options.push(this.options.dockerImage);
0 commit comments