Skip to content

Commit 4a14bc0

Browse files
committed
roachtest: fix nodejs install helper function
The -exec action in find requires a terminating semicolon (\;) to indicate the end of the command. Without it, find doesn't know when the command ends, so this instalation check could fail. Release note: None
1 parent 4cd3a9b commit 4a14bc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cmd/roachtest/tests/javascript_helpers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ func installNode18(
3535
if err := c.RunE(
3636
ctx, option.WithNodes(node), `
3737
sudo npm i -g npm && \
38-
sudo find /usr/local/lib/node_modules/npm -type d -exec chmod 755 {} && \
39-
sudo find /usr/local/lib/node_modules/npm -type f -exec chmod 644 {} && \
40-
sudo find /usr/local/lib/node_modules/npm/bin -type f -exec chmod 755 {}
38+
sudo find /usr/local/lib/node_modules/npm -type d -exec chmod 755 {} \; && \
39+
sudo find /usr/local/lib/node_modules/npm -type f -exec chmod 644 {} \; && \
40+
sudo find /usr/local/lib/node_modules/npm/bin -type f -exec chmod 755 {} \;
4141
`,
4242
); err != nil {
4343

0 commit comments

Comments
 (0)