Update all my mods

Posts: 10
Joined: Fri Nov 30, 2018 08:53
In-game: Kor

Update all my mods

by Kor » Sat Sep 14, 2019 19:39

I play with some many mods on my 5.0.1 client. Now I would like to keep them up to date. Is there any other method than going through all 100+ pages of content db and hunting down those upgrade-buttons? (If so, can we please get a "show all outdated mods" button? :) )

If I'm wrong: How do you update all your mods?

User avatar
Posts: 4393
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: Update all my mods

by Krock » Sat Sep 14, 2019 20:07

Code: Select all

find -type d | \
while read mod_path; do
   if [ ! -e "${mod_path}/.git" ]; then
   echo "Updating $mod_path"
   cd "$mod_path"
   #git stash
   git pull -r --progress
   #git stash pop
   cd ..
   echo " [DONE]"
   #read -p "Continue?"
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Posts: 354
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

Re: Update all my mods

by Hume2 » Sun Sep 15, 2019 18:37

I advice you to download mods using git clone. It has many advantages, such as:
  • Updating the mod is as easy as typing "git pull".
  • You can easily make sure that your local copy is the same as the copy on the server.
  • You never need to remember where you found the mod.
  • If you do a tiny tweak and then you need to update, you can use the power of git rebase.
  • Of course, you can update all your mods at once using Krock's script.
If you lack the reality, go on a trip or find a job.

Return to Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests