Browse Source

Add the EM_ONLINE setting.

master
poikilos 3 years ago
parent
commit
59cfbac279
  1. 6
      minetestenv-in-place.rc

6
minetestenv-in-place.rc

@ -548,6 +548,10 @@ minimize_mod() {
done
}
if [ "@$EM_ONLINE" = "@" ]; then
EM_ONLINE="true"
fi
install_git_mod_here(){
PREV_DIR="`pwd`"
THIS_MODS_PATH="`pwd`"
@ -578,6 +582,7 @@ install_git_mod_here(){
else
cd "$THIS_MOD_REPO" || customExit "(install_git_mod_here) 'cd \"$THIS_MOD_REPO\"' failed in '`pwd`'"
# echo " * updating '`pwd`' from git..."
if [ "@$EM_ONLINE" != "@false" ]; then
GIT_OUTPUT=$(git pull)
if [ "$GIT_OUTPUT" != "Already up to date." ]; then
echo " $GIT_OUTPUT"
@ -586,6 +591,7 @@ install_git_mod_here(){
echo "WARNING: (install_git_mod_here) 'git pull' failed in '`pwd`'"
fi
fi
fi
cd "$PREV_DIR" || customExit "(install_git_mod_here) 'cd ..' failed in '`pwd`'"

Loading…
Cancel
Save