From 6eed92b24aebe50e344cedd0d92697bd4bf51572 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 5 Dec 2020 17:25:00 -0800 Subject: [PATCH] install: update docs, help, version output --- hledger-install/hledger-install.sh | 59 ++++++++++++++---------------- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/hledger-install/hledger-install.sh b/hledger-install/hledger-install.sh index 492d9c20c..7656bb926 100755 --- a/hledger-install/hledger-install.sh +++ b/hledger-install/hledger-install.sh @@ -1,8 +1,6 @@ #!/bin/bash -# Easy hledger installation script for POSIX systems. -# Uses cabal if installed and stack is not, -# or stack, which it will install if needed (or if --force-install-stack is used). -# Requires bash and some other POSIX tools. +# Easy hledger installation script for POSIX systems, requiring bash +# and some other POSIX tools. # This is based on get-stack.sh which is copyright (c) 2015-2017, Stack contributors. #set -e # causes trouble, https://github.com/simonmichael/hledger/issues/714 @@ -10,36 +8,34 @@ set -o pipefail usage() { cat </dev/null)" $HLEDGER_UI_VERSION) = 2 ]]; then echo Installing hledger-ui - try_install hledger-ui-$HLEDGER_UI_VERSION hledger-$HLEDGER_VERSION hledger-lib-$HLEDGER_LIB_VERSION $EXTRA_DEPS \ +try_install hledger-ui-$HLEDGER_UI_VERSION hledger-$HLEDGER_VERSION hledger-lib-$HLEDGER_LIB_VERSION $EXTRA_DEPS \ # brick-X.Y # when hledger-iadd requires a special brick, use the same here to reduce rebuilding echo fi @@ -1034,7 +1031,7 @@ fi # show new installation status echo -echo "Install status after:" +echo "New install status:" print_installed_versions # warn if $HOME/.local/bin isn't in $PATH