Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
offtopic: no, you really don't need that
Browse files Browse the repository at this point in the history
 🐿 v2.10.3
  • Loading branch information
apaleslimghost committed Nov 20, 2018
1 parent 86aefad commit a461455
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/githooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const addScript = (json, config) => {
const addScripts = () => {
const json = getPackageJson();
const newJson = [
{ name: 'precommit', value: 'node_modules/.bin/secret-squirrel' },
{ name: 'commitmsg', value: 'node_modules/.bin/secret-squirrel-commitmsg' },
{ name: 'precommit', value: 'secret-squirrel' },
{ name: 'commitmsg', value: 'secret-squirrel-commitmsg' },
{ name: 'prepush', value: 'make verify -j3' }
].reduce((returnObject, row) => addScript(returnObject, row), json);
return newJson;
Expand All @@ -59,12 +59,12 @@ const find = test => {

const secretSquirrelPreCommitScriptExists = () => {
const json = getPackageJson();
return find(() => json.scripts.precommit.indexOf('node_modules/.bin/secret-squirrel') !== -1);
return find(() => json.scripts.precommit.indexOf('secret-squirrel') !== -1);
};

const secretSquirrelCommitmsgScriptExists = () => {
const json = getPackageJson();
return find(() => json.scripts.commitmsg.indexOf('node_modules/.bin/secret-squirrel-commitmsg') !== -1);
return find(() => json.scripts.commitmsg.indexOf('secret-squirrel-commitmsg') !== -1);
};

const preGitHookExists = () => {
Expand Down

0 comments on commit a461455

Please sign in to comment.