Fix quickrun does not update when code change while running through stack

This commit is contained in:
Supanat Pothivarakorn 2019-10-02 21:11:48 +07:00
commit e87431db3d

View file

@ -2,4 +2,7 @@
# quickrun runs ShellCheck in an interpreted mode. # quickrun runs ShellCheck in an interpreted mode.
# This allows testing changes without recompiling. # This allows testing changes without recompiling.
stack runghc shellcheck.hs "$@" BASEDIR=$(dirname $0)
AUTOGEN_PATH=$(find . -path '*/build/autogen')
stack runghc -- -i"${AUTOGEN_PATH}" -isrc shellcheck.hs "$@"