Skip to content

Commit

Permalink
Merge branch 'ivan-hc:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueru-sama authored May 26, 2024
2 parents 47a07de + fc2b746 commit 8ad3c39
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions APP-MANAGER
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

AMVERSION="6.8.3"
AMVERSION="6.8.3-1"

# Determine main repository and branch
AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"
Expand Down Expand Up @@ -603,13 +603,6 @@ function _use_appman() {
fi
}

if [ "$AMCLI" == am ] 2>/dev/null; then
if test -f "$APPMANCONFIG"/appman-mode; then
_appman
AMCLIPATH="/opt/am/APP-MANAGER"
fi
fi

function _back_to_am() {
if test -f "$APPMANCONFIG"/appman-mode; then
rm -f "$APPMANCONFIG"/appman-mode
Expand All @@ -619,6 +612,23 @@ function _back_to_am() {
fi
}

if [ "$AMCLI" == am ] 2>/dev/null; then
if test -f "$APPMANCONFIG"/appman-mode; then
case "$1" in
'--system')
_back_to_am
;;
''|*)
if ! test -f "$APPMANCONFIG"/appman-config; then
_appman_mode_enabled_message
fi
_appman
AMCLIPATH="/opt/am/APP-MANAGER"
;;
esac
fi
fi

#############################################
# FUNCTION TO HANDLE ALL THE EXTERNAL MODULES
#############################################
Expand Down

0 comments on commit 8ad3c39

Please sign in to comment.