Skip to content

Commit 344aba3

Browse files
GNU chown doesn't require -n to use numeric uid:gid.
1 parent 433aa4e commit 344aba3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27158,7 +27158,7 @@ async function sudoMkdirP(path) {
2715827158
if (external_fs_.existsSync(p))
2715927159
continue;
2716027160
await lib_exec.exec("sudo", ["mkdir", p]);
27161-
await lib_exec.exec("sudo", ["chown", "-n", userColonGroup, p]);
27161+
await lib_exec.exec("sudo", ["chown", userColonGroup, p]);
2716227162
}
2716327163
}
2716427164
function ancestors(filepath) {

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function sudoMkdirP(path: string) {
3636
for (const p of anc) {
3737
if (fs.existsSync(p)) continue;
3838
await exec.exec("sudo", ["mkdir", p]);
39-
await exec.exec("sudo", ["chown", "-n", userColonGroup, p]);
39+
await exec.exec("sudo", ["chown", userColonGroup, p]);
4040
}
4141
}
4242

0 commit comments

Comments
 (0)