Skip to content

Commit

Permalink
#24: Fix commands to get filname with or without DARK string
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpowis committed Aug 10, 2023
1 parent d40e55e commit bb42a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Update redirects for regular pdf
run: |
rm -f ./github-pages/_redirects/cv.html
file=$(find ./cv -type f ! -name "DARK" -print -quit)
file=$(find ./cv -maxdepth 1 -type f | grep -v "DARK" | awk 'NR==1{print}' | xargs -I{} basename {})
cat << EOF > ./github-pages/_redirects/cv.html
---
permalink: /cv
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Update redirects for dark pdf
run: |
rm -f ./github-pages/_redirects/cv_dark.html
file=$(find ./cv -type f -name "DARK" -print -quit)
file=$(find ./cv -maxdepth 1 -type f | grep "DARK" | awk 'NR==1{print}' | xargs -I{} basename {})
cat << EOF > ./github-pages/_redirects/cv_dark.html
---
permalink: /cv_dark
Expand Down

0 comments on commit bb42a1b

Please sign in to comment.