File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- AMVERSION=" 6.8.2- 3"
3+ AMVERSION=" 6.8.3"
44
55# Determine main repository and branch
66AMREPO=" https://raw.githubusercontent.com/ivan-hc/AM/main"
Original file line number Diff line number Diff line change @@ -60,13 +60,18 @@ function _sync_amcli() {
6060 echo " -----------------------------------------------------------------------------"
6161 _completion_lists
6262 rm -f /opt/am/appman
63- CURRENT_AM_VERSION=$( " $AMCLIPATH " -v)
63+ if [ " $AMCLIPATH " == /opt/am/appman ] 2> /dev/null; then
64+ AMCLIPATH=" /opt/am/APP-MANAGER"
65+ CURRENT_AM_VERSION=$( " $AMCLIPATH " -v)
66+ else
67+ CURRENT_AM_VERSION=$( " $AMCLIPATH " -v)
68+ fi
6469 echo -ne ' \n ◆ SYNCHRONIZING "' " $( echo " $AMCLI " | tr a-z A-Z) " ' " VERSION ' " $CURRENT_AM_VERSION " ' ...\r' ; sleep 1
6570 rm -R -f " $AMPATH " /.cache/* 1> /dev/null; cd " $AMPATH " /.cache || return
66- if [ " $CLI " == am ] 2> /dev/null; then
71+ if [ " $AMCLI " == am ] 2> /dev/null; then
6772 wget -q " $AMREPO " /APP-MANAGER && chmod a+x ./APP-MANAGER && chmod 777 ./APP-MANAGER
6873 cd ..
69- echo y | mv " $AMPATH " /.cache/APP-MANAGER " $AMCLIPATH "
74+ echo y | mv " $AMPATH " /.cache/APP-MANAGER /opt/am/APP-MANAGER
7075 else
7176 wget -q " $AMREPO " /APP-MANAGER -O appman && chmod a+x ./" $AMCLI "
7277 cd ..
You can’t perform that action at this time.
0 commit comments