Skip to content

Commit 524f1e1

Browse files
committed
do not install cpm as sudo when sudo=false
1 parent eee2847 commit 524f1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function install_cpm(install_to) {
3838
console.log(`install_to ${install_to}`);
3939

4040
// need to run it as sudo
41-
await exec.exec( 'sudo', [ PERL, '-MFile::Copy=cp', '-e', `cp("${cpmScript}", "${install_to}"); chmod(0755, "${install_to}")` ] );
41+
await do_exec( [ PERL, '-MFile::Copy=cp', '-e', `cp("${cpmScript}", "${install_to}"); chmod(0755, "${install_to}")` ] );
4242
//await io.cp(cpmScript, install_to); /* need to run with sudo */
4343
//await ioUtil.chmod(install_to, '0755')
4444

0 commit comments

Comments
 (0)