From 1ad36239ad4d20fca4f6f2cbc9e697613fb46ebb Mon Sep 17 00:00:00 2001 From: hybloid <48032702+hybloid@users.noreply.github.com> Date: Wed, 18 Sep 2024 18:19:22 +0200 Subject: [PATCH] :bug: Clean filename that is read from .keep file --- .github/workflows/node.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 59beaeb0..9b6ad1aa 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -169,7 +169,8 @@ jobs: git add README.md if [ -f ".keep" ]; then while IFS= read -r file; do - git add "$file" + clean_file=$(echo "$file" | tr -d '\r' | sed 's/[[:space:]]*$//') + git add "$clean_file" done < ".keep" else echo ".keep file not found, doing nothing."