diff --git a/ModIdFinder.sh b/ModIdFinder.sh index ed861eb..71e5827 100644 --- a/ModIdFinder.sh +++ b/ModIdFinder.sh @@ -9,7 +9,8 @@ while read path; do if [[ $sbmiLine = \* ]] ; then tmp=${sbmiLine#*>} modId=${tmp%<*} - MODIDARR+=({\"value\":$modId}) + modPath=${path%/*} + MODIDARR+=({\"value\":$modId,\"path\":\"$modPath\"}) fi done < "$path" done < allModDatas.txt