Commit 07982e73 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm print info: add epm version output

parent 8e47e735
......@@ -892,8 +892,10 @@ print_total_info()
{
local orig=''
[ -n "$BUILD_ID" ] && orig=" (orig. $BUILD_ID)"
local EV=''
[ -n "$EPMVERSION" ] && EV="(EPM version $EPMVERSION) "
cat <<EOF
distro_info v$PROGVERSION : Copyright © 2007-2023 Etersoft
distro_info v$PROGVERSION $EV: Copyright © 2007-2023 Etersoft
Pretty distro name (--pretty): $(print_pretty_name)
Distro name / version (--distro-name/version): $DISTRO_NAME / $DISTRIB_FULL_RELEASE$orig
......
......@@ -451,6 +451,7 @@ epm_print()
construct_name "$@"
;;
"info")
export EPMVERSION
$DISTRVENDOR "$@"
;;
*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment