Skip to content

Commit 9e2ffd0

Browse files
committed
Add const when defining chownCmd variable
Also fixed indent
1 parent 524760f commit 9e2ffd0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/pip.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ function installRequirements() {
9797
if (process.platform === 'linux') {
9898
// Set the ownership of the .serverless/requirements folder to current user
9999
pipCmd = quote(pipCmd);
100-
chownCmd = quote(['chown', '-R', `${process.getuid()}:${process.getgid()}`,
101-
'.serverless/requirements']);
100+
const chownCmd = quote([
101+
'chown', '-R', `${process.getuid()}:${process.getgid()}`,
102+
'.serverless/requirements',
103+
]);
102104
pipCmd = ['/bin/bash', '-c', '"' + pipCmd + ' && ' + chownCmd + '"'];
103105
}
104106
options.push(this.options.dockerImage);

0 commit comments

Comments
 (0)