From 186a258a480ba0de1b1d1e399334dcb8b66d53b4 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 19 May 2023 23:25:28 +0900 Subject: [PATCH] fix: clear files on reinstall --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 1bfc091..843df55 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash curl "https://raw.githubusercontent.com/aclist/dztui/main/dzgui.sh" > dzgui.sh chmod +x dzgui.sh +xdg_file="$HOME/.local/share/applications/dzgui.desktop" +share="$HOME/.local/share/dzgui" +conf="$HOME/.config/dztui" +[[ -f $xdg_file ]] && rm $xdg_file +[[ -d $share ]] && rm -rf $share +[[ -d $conf ]] && rm -rf $conf ./dzgui.sh