#!/bin/bash # # NOTE: YOUR MODS MUST FIRST BE GIT CLONED BEFORE THIS WILL WORK. # If you install your mods via the fetch.sh script, this will already be done. # You probably also want to not have Minetest running when updating mods. # Update the mods using a simple Git pull # Borrowed from Linuxdirk on the Minetest forums mods="/home/username/Programs/minetest-server/worlds/world/worldmods2/" for mod in $(ls -d $mods*/); do echo -ne "${bold}Updating $(basename ${mod})${normal}\n" echo -ne "${bold}Location $(dirname ${mod})${normal}\n\n" git -C "$mod" pull echo -ne "\n${line}\n\n\n" done