diff --git a/update.sh b/update.sh index 10f34b8..d75a7be 100755 --- a/update.sh +++ b/update.sh @@ -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