Skip to content

Commit

Permalink
meaningless changes to trigger workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixMT committed Apr 9, 2024
1 parent ea8538e commit 4fe8963
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/substituteMarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

PROJECT_FOLDER="$(cd "$(dirname "$(realpath "$0")")/../" &>/dev/null && pwd)"

env

# Substitute each mark by its value using indirect expansion
marks=("NAME" "EMAIL" "POSITION" "LINKEDIN")
for i in $@; do
initial="$(echo "${PROJECT_FOLDER}/data/${i}" | rev | cut -d "/" -f1 | cut -d "." -f2-)"
initial="$(echo "${PROJECT_FOLDER}/data/${i}" | rev | cut -d "/" -f1 | cut -d "." -f2- | tr '[:lower:]' '[:upper:]')"
for mark in ${marks[@]}; do
mark_name="$(echo "${initial}" | tr '[:lower:]' '[:upper:]')_${mark}"
mark_name="${initial}_${mark}"
echo mark_name is $mark_name
mark_value=${!mark_name}
if [ -n "${mark_value}" ]; then
echo "Substituted ${mark_name}"
Expand Down
1 change: 1 addition & 0 deletions templates/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,4 @@
</div>
</body>
</html>

0 comments on commit 4fe8963

Please sign in to comment.