Skip to content

Commit

Permalink
Merge 6944720 into ba271e8
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Mar 15, 2024
2 parents ba271e8 + 6944720 commit 0629ecf
Show file tree
Hide file tree
Showing 25 changed files with 1,860 additions and 139 deletions.
4 changes: 2 additions & 2 deletions .hooks/post-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
SHORT_SHA=$(git rev-parse HEAD)
LINT_LOG="$TMPDIR"/lint."$SHORT_SHA".log

Expand All @@ -12,7 +12,7 @@ notify() {
# if osascript is not supported, do nothing
if [ -f /usr/bin/osascript ]; then
# read back in the lint errors
ERRORS=$(cat "$LINT_LOG" | sed 1,4d)
ERRORS=$(sed 1,4d "$LINT_LOG")

# Trigger apple- or OSA-script on supported platforms
/usr/bin/osascript -e "display notification \"$ERRORS\" with title \"$*\""
Expand Down
2 changes: 1 addition & 1 deletion .hooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
fail=0

npm run lint || fail=1
Expand Down

0 comments on commit 0629ecf

Please sign in to comment.