From e87431db3d94775ce9ee1e36c7f7f5a29bbb04f3 Mon Sep 17 00:00:00 2001 From: Supanat Pothivarakorn Date: Wed, 2 Oct 2019 21:11:48 +0700 Subject: [PATCH] Fix quickrun does not update when code change while running through stack --- quickrun | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickrun b/quickrun index 3d5ad0d..d433cf3 100755 --- a/quickrun +++ b/quickrun @@ -2,4 +2,7 @@ # quickrun runs ShellCheck in an interpreted mode. # 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 "$@"