Browse Source

details check

pull/4356/head
Daniel Gibbs 2 years ago
parent
commit
310e0b7606
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 26
      .github/workflows/detals-check-generate-matrix.sh

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

@ -6,20 +6,18 @@ echo -n "{" > "shortnamearray.json"
echo -n "\"include\":[" >> "shortnamearray.json" echo -n "\"include\":[" >> "shortnamearray.json"
while read -r line; do while read -r line; do
if [ "${shortname}" != "sbots" ] && [ "${shortname}" != "inss" ]; then shortname=$(echo "$line" | awk -F, '{ print $1 }')
shortname=$(echo "$line" | awk -F, '{ print $1 }') export shortname
export shortname servername=$(echo "$line" | awk -F, '{ print $2 }')
servername=$(echo "$line" | awk -F, '{ print $2 }') export servername
export servername gamename=$(echo "$line" | awk -F, '{ print $3 }')
gamename=$(echo "$line" | awk -F, '{ print $3 }') export gamename
export gamename distro=$(echo "$line" | awk -F, '{ print $4 }')
distro=$(echo "$line" | awk -F, '{ print $4 }') export distro
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" echo -n "}," >> "shortnamearray.json"
echo -n "}," >> "shortnamearray.json"
fi
done < <(tail -n +2 serverlist.csv) done < <(tail -n +2 serverlist.csv)
sed -i '$ s/.$//' "shortnamearray.json" sed -i '$ s/.$//' "shortnamearray.json"
echo -n "]" >> "shortnamearray.json" echo -n "]" >> "shortnamearray.json"

Loading…
Cancel
Save