From e6172ccec79f98a39f5985676e7bb7262bea573e Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Tue, 8 Oct 2024 23:02:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20fix(grub-theme):=20theme=20backu?= =?UTF-8?q?p=20(#740)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * dir backup * - * suggestions by @nnyyxxxx Co-authored-by: nyx --------- Co-authored-by: nyx --- core/tabs/applications-setup/grub-theme.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/tabs/applications-setup/grub-theme.sh b/core/tabs/applications-setup/grub-theme.sh index d0b35420..9b79b39b 100644 --- a/core/tabs/applications-setup/grub-theme.sh +++ b/core/tabs/applications-setup/grub-theme.sh @@ -4,8 +4,12 @@ themeinstall(){ mkdir -p "$HOME/.local/share" - cd "$HOME/.local/share" && git clone "https://github.com/ChrisTitusTech/Top-5-Bootloader-Themes" - cd "$HOME/.local/share/Top-5-Bootloader-Themes" + cd "$HOME/.local/share" + if [ -d 'Top-5-Bootloader-Themes' ]; then + rm -rf 'Top-5-Bootloader-Themes' + fi + git clone "https://github.com/ChrisTitusTech/Top-5-Bootloader-Themes" + cd "Top-5-Bootloader-Themes" "$ESCALATION_TOOL" ./install.sh }