Auto-unobsolete for arch linux using bash

just a nifty script

#!/bin/bash

#cd “$PWD/data/mods”
cd stable/data/mods # <<< Your cataclysm directory

grep -R obsolete | grep modinfo | cut -f1 -d ‘:’ | while read ln; do

while IFS= read ln2; do

	echo "${ln2/'"obsolete": true'/'"obsolete": false'}"

done < "$ln" > tmp

mv tmp "$ln"

done