Pipe find to xargs

shellchek job not exiting with propper error code due to find -exec exit
code be always 0.
Piping find to xargs instead to get propper exit codes from shellcheck
This commit is contained in:
4s3ti 2021-11-03 01:41:18 +01:00
parent 4d2e3ed3f8
commit b4e9831da3

View file

@ -29,7 +29,7 @@ jobs:
dist: linux dist: linux
script: script:
- shellcheck auto_install/install.sh - shellcheck auto_install/install.sh
- find scripts/ -type f -exec shellcheck {} \; - find scripts/ -type f | xargs shellcheck
- stage: test - stage: test
name: "OpenVPN Xenial & Commands" name: "OpenVPN Xenial & Commands"