From 1c705daf923eea5ad085b0f0b10d3e50d51a3cb0 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 15 May 2023 21:22:01 +0100 Subject: [PATCH] codacy --- .github/workflows/detals-check-generate-matrix.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/detals-check-generate-matrix.sh b/.github/workflows/detals-check-generate-matrix.sh index 5d241fb72..3b45738bc 100755 --- a/.github/workflows/detals-check-generate-matrix.sh +++ b/.github/workflows/detals-check-generate-matrix.sh @@ -6,10 +6,14 @@ echo -n "{" > "shortnamearray.json" echo -n "\"include\":[" >> "shortnamearray.json" while read line; do - export shortname=$(echo "$line" | awk -F, '{ print $1 }') - export servername=$(echo "$line" | awk -F, '{ print $2 }') - export gamename=$(echo "$line" | awk -F, '{ print $3 }') - export distro=$(echo "$line" | awk -F, '{ print $4 }') + shortname=$(echo "$line" | awk -F, '{ print $1 }') + export shortname + servername=$(echo "$line" | awk -F, '{ print $2 }') + 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 "\"shortname\":" >> "shortnamearray.json" echo -n "\"${shortname}\"" >> "shortnamearray.json"