gunqqer

Untitled

Oct 22nd, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/bin/bash
  2. DataPath="/home/gunqqer/.steam/steam/steamapps/common/Skyrim/Data"
  3. WorkshopPath="/home/gunqqer/.steam/steam/steamapps/workshop/content/72850"
  4. cd "$WorkshopPath"
  5. find . -type f | sed -e "/\.bin$/d" -e "/\.jpg$/d" > ~/tmp/Skyrim/ModList #Finds and lists all files, removes all ending with .bin or .jpg. Probably should change to delete all but .esp, .bsa, .ini, but is not needed until more mods are unpacked by steam, but at that point everything would be working and this would be rendered useless.
  6. cat ~/tmp/Skyrim/ModList
  7.  
  8. while read -r LINE; do #For each mod listed in the list, copy to skyrim data directory.
  9. cp --no-clobber "$LINE" "$DataPath"
  10. done < ~/tmp/Skyrim/ModList
  11.  
  12.  
  13.  
  14. #TODO test if mods that put stuff in a textures folder or what ever work with out clobberng each other.
  15. #Or just use nexus to get all the mods and make a script for that, that would probably work better with more mods. Eh
Advertisement
Add Comment
Please, Sign In to add comment