mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
install: show some system info
This commit is contained in:
parent
3768cb333b
commit
86cbe0b095
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user