~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update vim to patch 8.0.1400 (#1945)
[termux-packages]
/
packages
/
termux-tools
/
termux-info
diff --git
a/packages/termux-tools/termux-info
b/packages/termux-tools/termux-info
index
eee919f
..
012f81f
100755
(executable)
--- a/
packages/termux-tools/termux-info
+++ b/
packages/termux-tools/termux-info
@@
-2,24
+2,11
@@
if [ "$#" != "0" ]; then
if [ "$#" != "0" ]; then
-
echo 'usage: termux-info'
-
echo 'Provides information about Termux, and the current system. Helpful for debugging.'
-
exit
+ echo 'usage: termux-info'
+ echo 'Provides information about Termux, and the current system. Helpful for debugging.'
+ exit
fi
fi
-
-
-version() {
- if [ -e "$PREFIX/version" ]; then
- cat "$PREFIX/version"
- else
- #Last version that didn't have a way to detect Termux version
- echo '<=0.48'
- fi
-}
-apps() {
- pm list packages -i | grep com.termux
-}
updates() {
apt update >/dev/null 2>&1
updatable=$(apt list --upgradable 2>/dev/null | tail -n +2)
updates() {
apt update >/dev/null 2>&1
updatable=$(apt list --upgradable 2>/dev/null | tail -n +2)
@@
-29,11
+16,8
@@
updates() {
echo "$updatable"
fi
}
echo "$updatable"
fi
}
-output="Termux version:
-$(version)
-Installed Termux apps:
-$(apps)
-Updatable packages:
+
+output="Updatable packages:
$(updates)
System information:
$(uname -a)
$(updates)
System information:
$(uname -a)