From 896e58c054745a464a0acf9d4411e5edf71d46bf Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 5 Oct 2018 09:50:46 -1000 Subject: [PATCH] install: warn when installed stack is too old [ci skip] --- hledger-install/hledger-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hledger-install/hledger-install.sh b/hledger-install/hledger-install.sh index c941fb9e2..a148689db 100755 --- a/hledger-install/hledger-install.sh +++ b/hledger-install/hledger-install.sh @@ -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