termux-tools: handle arguments for "pkg upgrade"
Fix for https://github.com/termux/termux-packages/issues/3758.
This commit is contained in:
parent
2c58ca8d3e
commit
14e3026432
|
@ -40,7 +40,7 @@ case "$CMD" in
|
||||||
se*) assert_not_root; apt update; apt search $@;;
|
se*) assert_not_root; apt update; apt search $@;;
|
||||||
sh*) apt show $@;;
|
sh*) apt show $@;;
|
||||||
un*|rem*|rm|del*) assert_not_root; apt remove $@;;
|
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)";;
|
*) echo "Unknown command: '$CMD' (run 'pkg help' for usage information)";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue