Skip to content

Commit f02684d

Browse files
Use su -c to run chown
1 parent 55ba79a commit f02684d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535
"type": "volume"
3636
}
3737
],
38-
"postCreateCommand": "sudo chown -R ${USER}:${USER} /usr/local/npm ${containerWorkspaceFolder}/node_modules"
38+
"postCreateCommand": ["su", "-c", "'chown -R ${USER}:${USER} /usr/local/npm ${containerWorkspaceFolder}/node_modules'"]
3939
}

0 commit comments

Comments
 (0)