Skip to content

Commit

Permalink
feat(minor): Minor update to readme script
Browse files Browse the repository at this point in the history
Signed-off-by: dark0dave <[email protected]>
  • Loading branch information
dark0dave committed Dec 7, 2023
1 parent f463d85 commit 0bc753c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/gen_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gen_compainions() {
echo -e "- [replace](https://baldursgate.fandom.com/wiki/Portraits#Adding_Custom_Portraits)"
echo -e "\n## Companion Portraits"

for portrait in $(ls ensrick_portraits/companions/**/*BMP | sed 's/..BMP//' | sort | uniq); do
for portrait in $(ls ensrick_portraits/companions/**/*L.BMP | sed 's/..BMP//' ); do
shortname=$(echo "${portrait}" | awk -F '/' '{print $4}')
echo -e "\n### ${shortname}\n"
echo -e "![${shortname}](${portrait}"L.BMP")\n"
Expand All @@ -18,7 +18,7 @@ gen_compainions() {

gen_protagonist() {
echo -e "\n## Protagonist Portraits\n"
for portrait in $(find ensrick_portraits/protagonist/ -type f | sed 's/..BMP//' | sort | uniq); do
for portrait in $(ls ensrick_portraits/protagonist/*L.BMP | sed 's/..BMP//'); do
shortname=$(echo "${portrait}" | awk -F '/' '{print $3}')
echo -e "\n### ${shortname}\n"
echo -e "![${shortname}](${portrait}"L.BMP")\n"
Expand Down

0 comments on commit 0bc753c

Please sign in to comment.