From 20d277f017d48494dde563adf1bf15ee16dc4b75 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 23 Sep 2024 18:40:40 +0200 Subject: [PATCH] Update update.sh --- update.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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