Skip to content

Commit

Permalink
🐛 Clean filename that is read from .keep file
Browse files Browse the repository at this point in the history
  • Loading branch information
hybloid authored and tiulpin committed Sep 18, 2024
1 parent 30eb621 commit 1ad3623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 1ad3623

Please sign in to comment.