install: show some system info

This commit is contained in:
Simon Michael 2017-09-03 12:12:02 -07:00
parent 3768cb333b
commit 86cbe0b095

View File

@ -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