termux-tools: termux-info: if TERMUX_VERSION is unset, report app version as 'unsupported'

This commit is contained in:
Leonid Pliushch 2021-09-17 16:17:53 +03:00
parent 26da480d36
commit 5869846d14
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 5 additions and 1 deletions

View File

@ -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.135
TERMUX_PKG_VERSION=0.136
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -55,6 +55,10 @@ if [ -n "$TERMUX_VERSION" ]; then
output+="Application version:
$TERMUX_VERSION
"
else
output+="Application version:
unsupported
"
fi
output+="Packages CPU architecture: