Skip to content

Commit 5341806

Browse files
committed
add docs of linting scripts
1 parent ddd8de3 commit 5341806

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

diff-so-fancy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ colorize_context_line () {
4848
}
4949

5050
mark_empty_lines () {
51-
$SED -E "s/^$color_code_regex[\+\-]$reset_color\s*$/$invert_color\1 $reset_escape/g"
51+
$SED -E "s/^$color_code_regex[\+\-]$reset_color\s*$/$invert_color\1 $reset_escape/g"
5252
}
5353

5454
strip_leading_symbols () {

readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ brew install entr
114114
ls --color=never diff-so-fancy test/*.bats | entr bats test
115115
```
116116

117+
Be sure to lint your scripts via shellcheck
118+
119+
```sh
120+
brew install shellcheck
121+
shellcheck diff-so-fancy update-deps.sh
122+
```
123+
117124
## License
118125

119126
MIT

0 commit comments

Comments
 (0)