fix: mods with ' in their name

This commit is contained in:
bastimeyer 2021-12-06 03:16:10 +01:00
parent 10a7396223
commit f459061a96

View file

@ -167,6 +167,7 @@ for modid in "${INPUT[@]}"; do
modname="$(gawk 'match($0,/name\s*=\s*"(.+)"/,m){print m[1];exit}' "${modmeta}")"
[[ -n "${modname}" ]] || err "Missing mod name for: ${modid}"
debug "Mod ${modid} found: ${modname}"
modname="${modname//\'/}"
if ! [[ -L "${DIR_DAYZ}/@${modname}" ]]; then
msg "Creating mod symlink for: ${modname}"