From f58e607c4b4b0a9a0fbb1cc954d903b476c78684 Mon Sep 17 00:00:00 2001 From: Gabriel Diaz Date: Fri, 5 Mar 2021 12:25:31 -0500 Subject: [PATCH] Fix buggy diff cmd (#1314) * Fix buggy diff cmd * Fix new line for diff cmd output Co-authored-by: Lukas Gravley --- lib/functions/buildFileList.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index b8fcbd0b..bab2f533 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -41,7 +41,7 @@ function GenerateFileDiff() { ################################################### # Map command output to an array to proper handle # ################################################### - mapfile -t RAW_FILE_ARRAY < <(echo "$DIFF_TREE_CMD_OUTPUT") + mapfile -t RAW_FILE_ARRAY < <(echo -n "$CMD_OUTPUT") debug "RAW_FILE_ARRAY contents: ${RAW_FILE_ARRAY[*]}" }