Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 0630a74

Browse files
author
Roman Labunsky
committed
fix: replaced copyfilesync with read and write file
1 parent 94cd825 commit 0630a74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/install.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function hookSetup() {
2626
fs.mkdirSync(datreeioDir)
2727
} catch (err) {}
2828

29-
fs.copyFileSync(path.join(__dirname, 'hook.js'), hookFullPath)
29+
const hookData = fs.readFileSync(path.join(__dirname, 'hook.js'))
30+
fs.writeFileSync(hookFullPath, hookData)
3031
enableHook(hookFullPath, homeDir)
3132
const data = {
3233
systeminfo: utils.getSystemInfo()

0 commit comments

Comments
 (0)