Go to file
Nathan Salapat ded11d2a60 Merge pull request #7 from donat-b/master
Added support for dry run mode and minor bugfixes
2014-10-12 16:39:47 -05:00
.gitignore Add gitignore 2014-10-12 20:55:56 +04:00
LICENSE Initial commit 2014-10-07 08:53:09 -05:00
README.md Added info for writing log. 2014-10-10 16:20:10 -05:00
credits.txt Create credits.txt 2014-10-09 17:06:22 -05:00
update.sh Add support for dry run, add more error handling, fix rename script calling 2014-10-12 20:54:04 +04:00

README.md

Minetest_Mods_Updater

A bash script for LINUX that automatically updates your minetest mods

To use, create a directory where you will git clone mods. Make sure to clone this to the same location. Call the updater with update.sh -s /home/yourname/gitclone/ -d /home/yourname/.minetest/mods Replace the yourname and gitclone as appropriate.

To run the script as a cron job just add it like this, open a terminal and type crontab -e Your crontab will open, then add the following line.

  • 4 * * * /home/yourname/gitclone/Minetest_Mods_Updater/update.sh -s /home/yourname/clonelocation/ -d /home/yourname/.minetest/mods/ >/dev/null 2>&1

You can also do this which will write a log file in your home directory.

/dev/null 2> ~/mod-update.log

Of course you can change when the job runs. If you aren't familiar with that syntax visit this page: http://www.howtoforge.com/a-short-introduction-to-cron-jobs

The script now calls another script, which needs to be located in ~/.minetest/mods and called rename.sh Sample script for the rename script: rm -rf mesecons mv minetest-mod-mesecons mesecons

Just duplicate these two lines as you need to. The first line deletes the original folder, and the second renames the folder from GIT to the name the mod needs.