Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -n "$2" ] ; then
- rebase="--rebase origin master"
- echo -e "\nRebase requested...\n"
- fi
- pushd .
- MODSDIR="/home/vanessa/Minetest-related/mods"
- cd $MODSDIR
- for i in $( find ./ -maxdepth 2 -type d | grep -v attic | grep -v my_mods ); do
- cd $MODSDIR
- if [ -e "$i/.git" ] ; then
- echo -e "\n>>>> Updating "$i"...\n"
- cd $i
- if [ -n "$rebase" ]; then
- echo "git pull $rebase"
- git pull $rebase
- else
- echo "git pull --commit"
- git pull --commit
- fi
- echo
- fi
- done
- echo "Make sure IRC mod is up-to-date..."
- cd /home/vanessa/Minetest-related/mods/kaezas_mods/irc/
- git pull
- git submodule update
- popd
- echo -e "\n\nUpdate complete.\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement