detect apt instead of OS

This commit is contained in:
Jan Jastrow 2024-08-11 00:47:26 +02:00
parent 0da271937b
commit 0a290694f2

View File

@ -7,7 +7,7 @@ if [[ -x $(which brew) ]]; then
alias brewupdate='brew update; brew upgrade; brew upgrade --cask; brew cleanup'
fi
if [[ $platform == 'Linux' ]]; then
if [[ -x $(which apt) ]]; then
alias aptupdate='sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt clean'
fi