chore: execute yesod via stack if yesod is not in PATH

This commit is contained in:
Sarah Vaupel 2020-02-04 12:30:10 +01:00 committed by Gregor Kleen
parent b6790163c0
commit f2a62f7661

View File

@ -25,6 +25,12 @@ if [[ -d .stack-work-run ]]; then
trap move-back EXIT
fi
# stack exec -- yesod devel $@
yesod devel $@
if ! [ -z "$(which yesod)" ]
then
yesod devel $@
elif ! [ -z "$(which stack)" ]
then
stack exec -- yesod devel $@
else
exit 1
fi