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
parent d19cca6a40
commit cdfca514fc

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