Commit 82a3692
committed
shellcheck: Do not call git apply if there is no diff output
`git apply` fails if there isn't a valid patch on stdin, empty stdin is not a
valid patch. Git errors out with `error: unrecognized input` message. This will
only call git apply if stdin is *not* empty so we can avoid this error
scenario.
Signed-off-by: Manuel Mendez <[email protected]>1 parent b9dbb2a commit 82a3692
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
271 | 275 | | |
272 | 276 | | |
273 | 277 | | |
| |||
0 commit comments