mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-15 23:59:25 +01:00
deb-update.bash: add linuxbrew
This commit is contained in:
parent
4ad1408305
commit
6046dfbb4c
@ -60,6 +60,16 @@ if hash dnf 2> /dev/null; then
|
||||
dnf -v "$@" autoremove
|
||||
fi
|
||||
|
||||
# https://github.com/Homebrew/brew
|
||||
if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
||||
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||
/home/linuxbrew/.linuxbrew/bin/brew doctor
|
||||
/home/linuxbrew/.linuxbrew/bin/brew update --quiet
|
||||
/home/linuxbrew/.linuxbrew/bin/brew upgrade --quiet
|
||||
else
|
||||
printf "Either linuxbrew is not installed or running as root, skipping linuxbrew...\n"
|
||||
fi
|
||||
|
||||
if hash rpmconf 2> /dev/null; then
|
||||
# Tests if there are rpmsave/rpmnew files, hopefully is non-interactive
|
||||
rpmconf -a -t
|
||||
|
Loading…
Reference in New Issue
Block a user