Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Update ModIdFinder.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ari-steas authored May 6, 2024
1 parent fc4772e commit 4f6d79b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ModIdFinder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ while read path; do
if [[ $sbmiLine = \<Id\>* ]] ; then
tmp=${sbmiLine#*>}
modId=${tmp%<*}
modPath=${path%/*}
MODIDARR+="{\"value\":$modId,\"path\":\"$modPath\"}"
modPathTmp=${path%/*}
modPath=${modPathTmp// /:}
MODIDARR+=(\{\"value\":$modId,\"path\":\"$modPath\"\})
fi
done < "$path"
done < allModDatas.txt

delim=""
joined=""
for item in "${MODIDARR[@]}"; do
joined="$joined$delim$item"
joined="${joined}${delim}${item//:/ }"
delim=","
done
echo "matrix={\"include\":[$joined]}]"

0 comments on commit 4f6d79b

Please sign in to comment.