From b73d4f8d3f1728bb7fcdd47481edbc96602b91c8 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 31 Jan 2022 15:07:53 -0500 Subject: [PATCH] Update sourcefiles.sh --- sourcefiles.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sourcefiles.sh b/sourcefiles.sh index a2e459b0..7b965753 100644 --- a/sourcefiles.sh +++ b/sourcefiles.sh @@ -19,12 +19,10 @@ IFS=" " read -r -a CLEAN_FILES <<< "$(echo "${RAW_FILES[*]}" | tr "\r\n" "\n" | IFS=" " read -r -a CLEAN_INPUT_FILES <<< "$(echo "${INPUT_FILES}" | tr "\r\n" "\n" | tr " " "\n" | awk -v d=" " '{s=(NR==1?s:s d)$0}END{print s}')" -FILES=("${CLEAN_FILES[@]}" "${CLEAN_INPUT_FILES[@]}") +ALL_FILES=("${CLEAN_FILES[@]}" "${CLEAN_INPUT_FILES[@]}") -IFS=" " read -r -a ALL_UNIQUE_FILES <<< "$(echo "${FILES[@]}" | tr "\r\n" "\n" | tr " " "\n" | awk '!a[$0]++' | awk -v d=" " '{s=(NR==1?s:s d)$0}END{print s}')" +echo "Input files: ${ALL_FILES[*]}" -echo "Input files: ${ALL_UNIQUE_FILES[*]}" - -echo "::set-output name=files::${ALL_UNIQUE_FILES[*]}" +echo "::set-output name=files::${ALL_FILES[*]}" echo "::endgroup::"