Skip to content

Commit

Permalink
encode with %20
Browse files Browse the repository at this point in the history
  • Loading branch information
RiX012 committed Nov 5, 2024
1 parent cb45a87 commit fdef576
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/verslagen-generate-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,26 @@ jobs:
echo "" >> index.md
for dir in */; do
dir=$(echo "$dir" | sed 's/ /\\ /g')
dir=${dir%/}
if [ -d "$dir" ]; then
echo "## $dir" >> index.md
for file in "$dir"*; do
file=$(echo "$file" | sed 's/ /\\ /g')
filename=$(basename "$file")
echo "- [$filename]($file)" >> index.md
find "$dir" -type f | while read -r file; do
file_link=$(echo "$file" | sed 's/ /%20/g')
file_name=$(basename "$file")
echo "- [$file_name]($file_link)" >> index.md
done
echo "" >> index.md
fi
done
# for dir in /; do
# dir=${dir%/}
# if [ -d "$dir" ]; then
# echo "## $dir" >> index.md
# find "$dir" -type f -printf "- [%f](%p)\n" | sort >> index.md
# echo "" >> index.md
# fi
# done
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit fdef576

Please sign in to comment.