Skip to content

Commit 4764ea5

Browse files
cruzdaniloernestognwcairoeth
authored
Fix prepare when using as git repository dependency
Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: cairo <cairoeth@protonmail.com>
1 parent c304b67 commit 4764ea5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"coverage": "scripts/checks/coverage.sh",
1414
"docs": "npm run prepare-docs && oz-docs",
1515
"docs:watch": "oz-docs watch contracts docs/templates docs/config.js",
16-
"prepare": "git config --local core.hooksPath .githooks",
16+
"prepare": "scripts/prepare.sh",
1717
"prepare-docs": "scripts/prepare-docs.sh",
1818
"lint": "npm run lint:js && npm run lint:sol",
1919
"lint:fix": "npm run lint:js:fix && npm run lint:sol:fix",

scripts/prepare.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
if git status &>/dev/null; then git config core.hooksPath .githooks; fi

0 commit comments

Comments
 (0)