1
0
mirror of https://github.com/koalaman/shellcheck.git synced 2025-11-06 03:06:14 +08:00
Files
.github
build
doc
snap
src
test
.dockerignore
.ghci
.github_deploy
.gitignore
.multi_arch_docker
.prepare_deploy
CHANGELOG.md
Dockerfile.multi-arch
LICENSE
README.md
ShellCheck.cabal
manpage
nextnumber
quickrun
quicktest
setgitversion
shellcheck.1.md
shellcheck.hs
stack.yaml
striptests
shellcheck/quickrun

14 lines
378 B
Bash
Executable File

#!/usr/bin/env bash
# quickrun runs ShellCheck in an interpreted mode.
# This allows testing changes without recompiling.
path=$(find . -type f -path './dist*/Paths_ShellCheck.hs' | sort | head -n 1)
if [ -z "$path" ]
then
echo >&2 "Unable to find Paths_ShellCheck.hs. Please 'cabal build' once."
exit 1
fi
path="${path%/*}"
exec runghc -isrc -i"$path" shellcheck.hs "$@"