Skip to content

Commit 4a703e8

Browse files
authored
Merge pull request #461 from tfutils/fix/406-431-version-name-bugs
Fix #406, Fix #431, Fix #447: Operator precedence bug and unbound variable in tfenv-version-name.sh
2 parents fa8d238 + ec30be8 commit 4a703e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tfenv-version-name.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function tfenv-version-name() {
1010
&& log 'debug' "TFENV_VERSION_FILE retrieved from tfenv-version-file: ${TFENV_VERSION_FILE}" \
1111
|| log 'error' 'Failed to retrieve TFENV_VERSION_FILE from tfenv-version-file';
1212

13-
TFENV_VERSION="$(cat "${TFENV_VERSION_FILE}" || true | tr -d '\r')" \
13+
TFENV_VERSION="$(cat "${TFENV_VERSION_FILE}" | tr -d '\r' || true)" \
1414
&& log 'debug' "TFENV_VERSION specified in TFENV_VERSION_FILE: ${TFENV_VERSION}";
1515

1616
TFENV_VERSION_SOURCE="${TFENV_VERSION_FILE}";
@@ -77,7 +77,7 @@ function tfenv-version-name() {
7777
TFENV_VERSION="${local_version}";
7878
fi;
7979
else
80-
log 'error' "No versions matching '${requested}' found in remote";
80+
log 'error' "No versions matching '${TFENV_VERSION}' found in remote";
8181
fi;
8282
else
8383
if [[ -n "${local_version}" ]]; then

0 commit comments

Comments
 (0)