From 4a85811376dd9db3f070381fa05fb67d5395d542 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Tue, 26 Jul 2022 17:06:08 +0200 Subject: [PATCH] create non-writable-file precommit file --- install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.js b/install.js index 872f00b..b4a5285 100644 --- a/install.js +++ b/install.js @@ -121,9 +121,9 @@ try { fs.writeFileSync(precommit, precommitContent) } catch (e) { console.error('pre-commit:') } -try { fs.chmodSync(precommit, '777') } catch (e) { +try { fs.chmodSync(precommit, '775') } catch (e) { console.error('pre-commit:') - console.error('pre-commit: chmod 0777 the pre-commit file in your .git/hooks folder because:') + console.error('pre-commit: chmod 0775 the pre-commit file in your .git/hooks folder because:') console.error('pre-commit: ' + e.message) console.error('pre-commit:') }