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.
const
chownCmd
1 parent 524760f commit 9e2ffd0Copy full SHA for 9e2ffd0
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