Skip to content

Commit

Permalink
Fix shell variable interpolation for prefix/postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbooth-ankored authored and okize committed Nov 12, 2024
1 parent 954a802 commit 32f568a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse_tool_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ while IFS= read -r line; do
if [[ $line != \#* ]]; then
NAME="$(echo "$line" | cut -d' ' -f1)"
if [ -n "$PREFIX" ]; then
NAME="$PREFIX$NAME"
NAME="${PREFIX}${NAME}"
elif [ -n "$POSTFIX" ]; then
NAME="$NAME$POSTFIX"
NAME="${NAME}${POSTFIX}"
fi
if [ "$UPPERCASE" == "true" ]; then NAME="$(echo "$NAME" | tr "[:lower:]" "[:upper:]")"; fi

Expand Down

0 comments on commit 32f568a

Please sign in to comment.