remove old instal in usr/bin

This commit is contained in:
MatMoul 2022-10-16 00:25:49 +02:00
parent c535adf3aa
commit d26ecca529

9
archdi
View file

@ -42,13 +42,14 @@ install(){
echo "Install $apptitle ..." echo "Install $apptitle ..."
echo "" echo ""
chmod 755 $0 2>/dev/null 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 ""
echo "$apptitle is installed." echo "$apptitle is installed."
echo "type archdi to start." echo "type archdi to start."
if [[ -f "/usr/bin/archfi" ]]; then
rm /usr/bin/archfi
fi
} }
run(){ run(){