Skip to content

Commit 32f568a

Browse files
jbooth-ankoredokize
authored andcommitted
Fix shell variable interpolation for prefix/postfix
1 parent 954a802 commit 32f568a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parse_tool_versions.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ while IFS= read -r line; do
44
if [[ $line != \#* ]]; then
55
NAME="$(echo "$line" | cut -d' ' -f1)"
66
if [ -n "$PREFIX" ]; then
7-
NAME="$PREFIX$NAME"
7+
NAME="${PREFIX}${NAME}"
88
elif [ -n "$POSTFIX" ]; then
9-
NAME="$NAME$POSTFIX"
9+
NAME="${NAME}${POSTFIX}"
1010
fi
1111
if [ "$UPPERCASE" == "true" ]; then NAME="$(echo "$NAME" | tr "[:lower:]" "[:upper:]")"; fi
1212

0 commit comments

Comments
 (0)