mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00
When creating symlinks, remove more than just spaces from mod names.
This commit is contained in:
parent
29ce456543
commit
745788560f
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue