Update update.sh

This commit is contained in:
Christoffer Martinsson 2024-09-23 18:40:40 +02:00
parent 9360c2577f
commit 20d277f017

View File

@ -1,6 +1,13 @@
#!/bin/bash
set -e
if [ -f /etc/os-release ]; then
# freedesktop.org and systemd
. /etc/os-release
OS=$NAME
VER=$VERSION_ID
fi
# Ubuntu 20.04 workaround
printf -- '\033[33m Remove neovim if already installed\n\033[37m'
sudo apt -y purge --auto-remove neovim
@ -100,7 +107,9 @@ rm ~/lazygit && rm ~/lazygit.tar.gz
# Install gdu
printf -- '\033[33m Installing gdu\n\033[37m'
if [ $VER = "22.04" ]; then
sudo add-apt-repository -y ppa:daniel-milde/gdu
fi
sudo nala update
sudo nala install -y gdu