You are here

lint-shell.sh in Realistic Dummy Content 7.2

Same filename and directory in other branches
  1. 8.2 developer/lib/lint-shell.sh
#!/bin/bash
#
# Run linting on shell scripts.
#
set -e

BASEPATH="$(pwd)"

echo -e '[lint] About to lint bash scripts.'

# See https://github.com/dcycle/docker-shell-lint
cd "$BASEPATH"/.. && find . -name "*.sh" -print0 | \
  xargs -0 docker run -v "$(pwd)":/code dcycle/shell-lint

File

developer/lib/lint-shell.sh
View source
  1. #!/bin/bash
  2. #
  3. # Run linting on shell scripts.
  4. #
  5. set -e
  6. BASEPATH="$(pwd)"
  7. echo -e '[lint] About to lint bash scripts.'
  8. # See https://github.com/dcycle/docker-shell-lint
  9. cd "$BASEPATH"/.. && find . -name "*.sh" -print0 | \
  10. xargs -0 docker run -v "$(pwd)":/code dcycle/shell-lint