mirror of
https://github.com/ChrisTitusTech/mybash.git
synced 2026-04-12 23:49:30 +00:00
fix exit on cd failure and unit test
This commit is contained in:
5
.github/workflows/bashtest.yml
vendored
5
.github/workflows/bashtest.yml
vendored
@@ -15,4 +15,7 @@ jobs:
|
||||
|
||||
- name: Lint Bash scripts
|
||||
run: |
|
||||
find . -name "*.sh" -print0 | xargs -0 shellcheck
|
||||
find . -name "*.sh" -print0 | xargs -0 shellcheck -f gcc | tee shellcheck.log
|
||||
if grep -q "error:" shellcheck.log; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user