From f51ac3f1e116a1442b1e469791fd0d6dca002514 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 19 May 2023 23:29:50 +0900 Subject: [PATCH] fix: clear files on reinstall --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5c32057..706f08d 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,10 @@ -#!/bin/bash +#!/usr/bin/env bash curl "https://raw.githubusercontent.com/aclist/dztui/testing/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