Skip to content

Commit 965f757

Browse files
committed
feat: quick install if not explicit verbose
1 parent b0a686a commit 965f757

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/prepublish.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ function applyPatches() {
8383
shell.sed('-i', '#include "zookeeper.h"', '#include "winport.h"\n#include "zookeeper.h"\n', `${destination}/zk_adaptor.h`);
8484
shell.sed('-i', '#include "zk_adaptor.h"', '#include "zk_adaptor.h"\n#include "winport.h"\n', `${destination}/zookeeper.c`);
8585

86-
const cmakeFile = 'CMakeLists.txt';
87-
shell.cp(`${env.rootFolder}/patches/${cmakeFile}`, `${env.sourceFolder}/src/c/${cmakeFile}`);
86+
if (!process.env.ZK_INSTALL_VERBOSE) {
87+
const cmakeFile = 'CMakeLists.txt';
88+
shell.cp(`${env.rootFolder}/patches/${cmakeFile}`, `${env.sourceFolder}/src/c/${cmakeFile}`);
89+
}
8890
return;
8991
}
9092

0 commit comments

Comments
 (0)