Add termux special case
This commit is contained in:
@ -58,6 +58,10 @@ if hash lsb_release 2>/dev/null; then
|
|||||||
# shellcheck disable=SC2139
|
# shellcheck disable=SC2139
|
||||||
alias update="$command"
|
alias update="$command"
|
||||||
fi
|
fi
|
||||||
|
elif [[ "$TERMUX_VERSION" ]]; then
|
||||||
|
# Termux, special case
|
||||||
|
alias update-mirrors="termux-change-repo"
|
||||||
|
alias update="pkg update && pkg upgrade && pkg autoremove"
|
||||||
# Non privaledged environemnt, have to use local package managers like eget, nix, etc
|
# Non privaledged environemnt, have to use local package managers like eget, nix, etc
|
||||||
else
|
else
|
||||||
alias update-mirrors="echo 'No mirrors to update'"
|
alias update-mirrors="echo 'No mirrors to update'"
|
||||||
|
Reference in New Issue
Block a user