Skip to content

Commit

Permalink
The one that installs "AM" is the owner
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Jun 4, 2024
1 parent 77e96b5 commit 607f3e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ function _am() {
AMPATH="$APPSPATH/$AMCLI"
_create_cache_dir
mkdir -p "$AMPATH"/modules
echo y | chmod 777 /opt/am /opt/am/* /opt/am/.cache /opt/am/modules 2>/dev/null
}

#######################################
Expand Down Expand Up @@ -762,7 +761,7 @@ function _sync_modules() {
if ! test -f ./"$MODULENAME"; then
echo " ◆ Downloading $MODULENAME (not previously installed)..."
wget -q "$v"
chmod a+x ./"$MODULENAME" 2>/dev/null && chmod 777 ./"$MODULENAME" 2>/dev/null
chmod a+x ./"$MODULENAME"
fi
CURRENT=$(cat ./"$MODULENAME")
SOURCE=$(wget -q "$v" -O -)
Expand All @@ -772,7 +771,7 @@ function _sync_modules() {
echo " ◆ Updating $MODULENAME..."
mkdir "$AMCACHEDIR"/tmp
cd "$AMCACHEDIR"/tmp || return
wget -q "$v" && chmod a+x ./*.am && chmod 777 ./*.am
wget -q "$v"
cd ..
echo y | mv tmp/*.am "$AMPATH"/modules/
rmdir tmp
Expand Down

0 comments on commit 607f3e8

Please sign in to comment.