Fixes for termux
This commit is contained in:
parent
2d102a105d
commit
1075a60db1
2 changed files with 9 additions and 2 deletions
|
@ -33,8 +33,10 @@ pi() {
|
|||
if [ -n "$SELECTED_PKGS" ]; then
|
||||
{%@@ if distro_id == "arch" @@%}
|
||||
cmd="paru -S $(echo $SELECTED_PKGS)"
|
||||
{%@@ else @@%}
|
||||
{%@@ elif distro_id == "ubuntu" @@%}
|
||||
cmd="sudo apt install $(echo $SELECTED_PKGS)"
|
||||
{%@@ elif distro_id == "termux" @@%}
|
||||
cmd="apt install $(echo $SELECTED_PKGS)"
|
||||
{%@@ endif @@%}
|
||||
|
||||
# Append the expanded command to history
|
||||
|
@ -54,8 +56,10 @@ pr() {
|
|||
if [ -n "$SELECTED_PKGS" ]; then
|
||||
{%@@ if distro_id == "arch" @@%}
|
||||
cmd="paru -Rns $(echo $SELECTED_PKGS)"
|
||||
{%@@ else @@%}
|
||||
{%@@ elif distro_id == "ubuntu" @@%}
|
||||
cmd="sudo apt remove $(echo $SELECTED_PKGS)"
|
||||
{%@@ elif distro_id == "termux" @@%}
|
||||
cmd="apt remove $(echo $SELECTED_PKGS)"
|
||||
{%@@ endif @@%}
|
||||
|
||||
# Append the expanded command to history
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue