diff --git a/hledger-install/hledger-install.sh b/hledger-install/hledger-install.sh index 55eb3d3ce..1f1ed0515 100755 --- a/hledger-install/hledger-install.sh +++ b/hledger-install/hledger-install.sh @@ -770,6 +770,11 @@ try_info() { $@ } +# Run a command if possible, suppressing any error output or non-zero exit code. +quietly_run() { + $@ 2>/dev/null || true +} + # start # process command-line flags @@ -839,6 +844,11 @@ if ! on_path "$HOME_LOCAL_BIN" ; then export PATH=$HOME_LOCAL_BIN:$PATH fi +# show system info +echo "System info:" +quietly_run uname +quietly_run lsb_release -a + # show current installed hledger packages echo "Install status:" print_hledger_versions