From 9d99cc65438fb4c684d39f01e615380b831c2b7f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 10 Mar 2017 15:22:44 +0100 Subject: [PATCH] termux-tools: Allow shorter forms in packages --- packages/termux-tools/build.sh | 2 +- packages/termux-tools/packages | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index 2bebdb6d0..7e978ce75 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=https://termux.com/ TERMUX_PKG_DESCRIPTION="Basic system tools for Termux" -TERMUX_PKG_VERSION=0.39 +TERMUX_PKG_VERSION=0.40 TERMUX_PKG_PLATFORM_INDEPENDENT=yes TERMUX_PKG_CONFFILES="etc/motd" diff --git a/packages/termux-tools/packages b/packages/termux-tools/packages index b76c62665..1a2563071 100755 --- a/packages/termux-tools/packages +++ b/packages/termux-tools/packages @@ -22,15 +22,15 @@ CMD="$1" shift 1 case "$CMD" in - help) show_help;; - install) apt update; apt install $@;; - list-all) apt list $@;; - list-installed) apt list --installed $@;; - reinstall) apt install --reinstall $@;; - search) apt update; apt search $@;; - show) apt show $@;; - uninstall|remove) apt remove $@;; - update|upgrade) apt update; apt full-upgrade;; + h*) show_help;; + i*) apt update; apt install $@;; + list-a*) apt list $@;; + list-i*) apt list --installed $@;; + re*) apt install --reinstall $@;; + se*) apt update; apt search $@;; + sh*) apt show $@;; + un*|rem*|rm|del*) apt remove $@;; + up*) apt update; apt full-upgrade;; *) echo "Unknown command: '$CMD' (run 'packages help' for usage information)";; esac