Skip to content

Commit d9196b3

Browse files
authored
Sentinel Fmt Hook Bugfix (#123)
* Fix shebang line 1 and fmt command shebang needs to be on line one to work properly and sentinel fmt no longer has a diff cli argument * adding execute to sentinel-fmt hook Signed-off-by: Will Schultz <schultzwc18@gmail.com> --------- Signed-off-by: Will Schultz <schultzwc18@gmail.com>
1 parent d262cbb commit d9196b3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

hooks/sentinel-fmt.sh

100644100755
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#!/usr/bin/env bash
32

43
set -e
@@ -13,7 +12,7 @@ export PATH=$PATH:/usr/local/bin
1312
FMT_ERROR=0
1413

1514
for file in "$@"; do
16-
sentinel fmt -diff -check "$file" || FMT_ERROR=$?
15+
sentinel fmt -check "$file" || FMT_ERROR=$?
1716
done
1817

1918
# reset path to the original value

0 commit comments

Comments
 (0)