Skip to content

Commit ed2928c

Browse files
committed
chore: finalise git hook scripts
1 parent 6cbf49f commit ed2928c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/git-hooks/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
3-
echo "compile.sh"
3+
44
runOnChange() {
55
echo "$changedFiles" | grep -q "$1" && eval "$2"
66
}

scripts/git-hooks/post-checkout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
./compile.sh
2+
./scripts/git-hooks/compile.sh

0 commit comments

Comments
 (0)