install: warn when installed stack is too old

[ci skip]
This commit is contained in:
Simon Michael 2018-10-05 09:50:46 -10:00
parent bcf6f8ab4d
commit 896e58c054

View File

@ -962,10 +962,15 @@ echo "System info:"
quietly_run uname -rsv
quietly_run lsb_release -a
# show current installed hledger packages
# show current installed hledger packages and install tools
echo "Install status before:"
print_installed_versions
# show a warning if stack is too old
if has_stack && ! has_good_stack ; then
echo "Note: stack $(cmd_version stack) is too old, a newer one will be installed"
fi
if [[ $STATUSFLAG ]] ; then
exit 0
fi