remove old instal in usr/bin
This commit is contained in:
parent
c535adf3aa
commit
d26ecca529
1 changed files with 5 additions and 4 deletions
9
archdi
9
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(){
|
||||
|
|
Loading…
Reference in a new issue