Browse Source

codacy

pull/4174/head
Daniel Gibbs 2 years ago
parent
commit
1c705daf92
  1. 12
      .github/workflows/detals-check-generate-matrix.sh

12
.github/workflows/detals-check-generate-matrix.sh

@ -6,10 +6,14 @@ echo -n "{" > "shortnamearray.json"
echo -n "\"include\":[" >> "shortnamearray.json" echo -n "\"include\":[" >> "shortnamearray.json"
while read line; do while read line; do
export shortname=$(echo "$line" | awk -F, '{ print $1 }') shortname=$(echo "$line" | awk -F, '{ print $1 }')
export servername=$(echo "$line" | awk -F, '{ print $2 }') export shortname
export gamename=$(echo "$line" | awk -F, '{ print $3 }') servername=$(echo "$line" | awk -F, '{ print $2 }')
export distro=$(echo "$line" | awk -F, '{ print $4 }') export servername
gamename=$(echo "$line" | awk -F, '{ print $3 }')
export gamename
distro=$(echo "$line" | awk -F, '{ print $4 }')
export distro
echo -n "{" >> "shortnamearray.json" echo -n "{" >> "shortnamearray.json"
echo -n "\"shortname\":" >> "shortnamearray.json" echo -n "\"shortname\":" >> "shortnamearray.json"
echo -n "\"${shortname}\"" >> "shortnamearray.json" echo -n "\"${shortname}\"" >> "shortnamearray.json"

Loading…
Cancel
Save