When creating symlinks, remove more than just spaces from mod names.

This commit is contained in:
Daniel Ceregatti 2023-08-25 17:41:46 -07:00
parent 29ce456543
commit 745788560f

View file

@ -63,7 +63,7 @@ get_mod_name(){
echo "Mod ID ${1} doesn't exist" >&2
exit 1
fi
NAME=$(grep name ${WORKSHOP_DIR}/${ID}/meta.cpp | cut -d '"' -f2 | sed -r 's/\s+//g')
NAME=$(grep name ${WORKSHOP_DIR}/${ID}/meta.cpp | cut -d '"' -f2 | tr -cd [:alnum:])
echo -n ${NAME}
}