termux-tools: show application version when running termux-info (#6547)
This commit is contained in:
parent
7aeb7125ef
commit
8d447cb1b4
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://termux.com/
|
||||
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.113
|
||||
TERMUX_PKG_VERSION=0.114
|
||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
TERMUX_PKG_ESSENTIAL=true
|
||||
|
@ -48,7 +48,16 @@ repo_subscriptions() {
|
||||
done < <(find "@TERMUX_PREFIX@/etc/apt/sources.list.d" -maxdepth 1 ! -type d)
|
||||
}
|
||||
|
||||
output="Packages CPU architecture:
|
||||
output=""
|
||||
|
||||
if [ -n "$TERMUX_VERSION" ]; then
|
||||
# Application version is exported in Termux v0.107 or higher only.
|
||||
output+="Application version:
|
||||
$TERMUX_VERSION
|
||||
"
|
||||
fi
|
||||
|
||||
output+="Packages CPU architecture:
|
||||
$(dpkg --print-architecture)
|
||||
Subscribed repositories:
|
||||
$(repo_subscriptions)
|
||||
|
Loading…
Reference in New Issue
Block a user