From f1b7b333472e54317c3c9c15600dbbc8412ab4b0 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 16 Oct 2022 00:22:39 +0200 Subject: [PATCH] remove old instal in usr/bin --- archdi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archdi b/archdi index ce7fcaf..1aabef7 100644 --- a/archdi +++ b/archdi @@ -46,6 +46,9 @@ install(){ echo "" echo "$apptitle is installed." echo "type archdi to start." + if [[ -f "/usr/bin/archfi" ]]; then + rm /usr/bin/archfi + fi } run(){ @@ -160,9 +163,6 @@ chkupgrade(){ cd /tmp wget $binurl sh archdi -i - if [[ -f "/usr/bin/archfi" ]]; then - rm /usr/bin/archfi - fi exit 0 fi fi