Skip to content

Commit 98a7c48

Browse files
authored
Merge pull request #127 from abetomo/add_const_when_defining_variable
Add `const` when defining `chownCmd` variable
2 parents 524760f + 9e2ffd0 commit 98a7c48

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)