termux-tools: handle arguments for "pkg upgrade"

Fix for https://github.com/termux/termux-packages/issues/3758.
This commit is contained in:
Leonid Pliushch 2019-05-06 23:21:38 +03:00
parent 2c58ca8d3e
commit 14e3026432
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ case "$CMD" in
se*) assert_not_root; apt update; apt search $@;;
sh*) apt show $@;;
un*|rem*|rm|del*) assert_not_root; apt remove $@;;
up*) assert_not_root; apt update; apt full-upgrade;;
up*) assert_not_root; apt update; apt full-upgrade $@;;
*) echo "Unknown command: '$CMD' (run 'pkg help' for usage information)";;
esac