Skip to content

Commit 16ba61c

Browse files
committed
improve the bash script
- make it more portable with #!/usr/bin/env sh - use best pratices for bash scripts
1 parent d5dcda1 commit 16ba61c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ CFLAGS = -c -g -D $(TARGET)
44

55
# Content of the pre-commit hook
66
define PRECOMMIT
7-
#!/bin/sh
8-
make lint
7+
#!/usr/bin/env sh
8+
9+
main() {
10+
make lint
11+
}
12+
13+
main
914
endef
1015
export PRECOMMIT
1116

0 commit comments

Comments
 (0)