Skip to content

Commit

Permalink
replace space with underscore for url paths
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderPico committed Jul 5, 2023
1 parent a18bdaa commit 3a13f37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/on_gpml_change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
echo ${#checkAuthors[@]}
for a in ${checkAuthors[@]}; do
a=$(echo "$a" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
a2=$(echo "$a" | tr ' ' '_')
if [[ ! " ${authorList[*]} " =~ " ${a} " ]]; then
echo "Adding $a"
echo $a","$a",,," >> scripts/author_list.csv
Expand All @@ -127,8 +128,8 @@ jobs:
echo "meta:" >> "wikipathways.github.io/_authors/$a.md"
echo "instagram:" >> "wikipathways.github.io/_authors/$a.md"
echo "redirect_from:" >> "wikipathways.github.io/_authors/$a.md"
echo "- /index.php/User:$a" >> "wikipathways.github.io/_authors/$a.md"
echo "- /index.php/Special:Contributions/$a" >> "wikipathways.github.io/_authors/$a.md"
echo "- /index.php/User:$a2" >> "wikipathways.github.io/_authors/$a.md"
echo "- /index.php/Special:Contributions/$a2" >> "wikipathways.github.io/_authors/$a.md"
echo "---" >> "wikipathways.github.io/_authors/$a.md"
fi
done
Expand Down

0 comments on commit 3a13f37

Please sign in to comment.