From 32f568a4ffd4bfa7720ebf93f171597d1ebc979a Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 9 Nov 2024 19:04:47 +0000 Subject: [PATCH] Fix shell variable interpolation for prefix/postfix --- parse_tool_versions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse_tool_versions.sh b/parse_tool_versions.sh index 6a527de..b32e89c 100755 --- a/parse_tool_versions.sh +++ b/parse_tool_versions.sh @@ -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