19 lines
458 B
Bash
19 lines
458 B
Bash
|
|
||
|
### get list of all *.pw.toml files in the .minecraft/mods directory
|
||
|
## Then cd into .minecraft/ and run `packwiz remove <modname>` for each mod and then `packwiz mr add <modname>` for each mod
|
||
|
for i in $(find mods -name "*.pw.toml"); do
|
||
|
modname=${i%".pw.toml"}
|
||
|
modname=${modname#"mods/"}
|
||
|
|
||
|
|
||
|
if [ ! $modname == "" ]; then
|
||
|
echo "Removing $modname"
|
||
|
packwiz remove $modname
|
||
|
packwiz mr add $modname
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
|
||
|
find ./ -type f -exec dos2unix '{}' '+'
|
||
|
|