moveros 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.js +4 -1
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -1012,7 +1012,10 @@ function installHooksForClaude(bundleDir, vaultPath) {
|
|
|
1012
1012
|
|
|
1013
1013
|
let count = 0;
|
|
1014
1014
|
for (const file of fs.readdirSync(hooksSrc).filter((f) => f.endsWith(".sh"))) {
|
|
1015
|
-
|
|
1015
|
+
const dst = path.join(hooksDst, file);
|
|
1016
|
+
// Read, strip \r (CRLF→LF), write — prevents "command not found" on macOS/Linux
|
|
1017
|
+
const content = fs.readFileSync(path.join(hooksSrc, file), "utf8").replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
1018
|
+
fs.writeFileSync(dst, content, { mode: 0o755 });
|
|
1016
1019
|
count++;
|
|
1017
1020
|
}
|
|
1018
1021
|
|