Go to file
Nathan Salapat ae3be68fb1 Forgot to include the arguments
Just updated the cron lines to include the -s and -d portions.
2014-10-09 20:25:46 -05:00
LICENSE Initial commit 2014-10-07 08:53:09 -05:00
README.md Forgot to include the arguments 2014-10-09 20:25:46 -05:00
credits.txt Create credits.txt 2014-10-09 17:06:22 -05:00
update.sh Made some changes to the readme. 2014-10-09 18:37:14 -05: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

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.