From d26ecca5296a9f0303bad178535f114cc78ddb64 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 16 Oct 2022 00:25:49 +0200 Subject: [PATCH] remove old instal in usr/bin --- archdi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/archdi b/archdi index 0953c74..49173d4 100644 --- a/archdi +++ b/archdi @@ -42,13 +42,14 @@ install(){ echo "Install $apptitle ..." echo "" chmod 755 $0 2>/dev/null - mv $0 /usr/local/bin/archdi 2>/dev/null + if [[ -f "/usr/bin/archfi" ]]; then + mv $0 /usr/bin/archdi 2>/dev/null + else + mv $0 /usr/local/bin/archdi 2>/dev/null + fi echo "" echo "$apptitle is installed." echo "type archdi to start." - if [[ -f "/usr/bin/archfi" ]]; then - rm /usr/bin/archfi - fi } run(){