This commit is contained in:
JMARyA 2020-06-11 05:04:00 +02:00
commit 0ef3bd7a55
No known key found for this signature in database
GPG key ID: 19BD48AEE60FA00B
8 changed files with 116 additions and 0 deletions

26
update Normal file
View file

@ -0,0 +1,26 @@
function update() {
if type "apt-get" &> /dev/null; then
sudo apt-get update;
sudo apt-get upgrade;
sudo apt-get dist-upgrade;
fi
if type "pacman" &> /dev/null; then
sudo pacman -Syu;
fi
if type "yum" &> /dev/null; then
yum upgrade;
fi
if type "snap" &> /dev/null; then
sudo snap refresh;
fi
if type "flatpak" &> /dev/null; then
flatpak update;
fi
if type "brew" &> /dev/null; then
brew update;
brew upgrade;
brew cask upgrade;
fi
}