Skip to content

Commit

Permalink
Merge pull request tfutils#247 from GerardVivancos/master
Browse files Browse the repository at this point in the history
Stop execution of install if min-version cannot be properly resolved
  • Loading branch information
Zordrak authored Aug 14, 2021
2 parents 4e75af3 + 244492e commit eefabe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libexec/tfenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ done;
declare requested="${1:-""}";

log debug "Resolving version with: tfenv-resolve-version ${requested}";
declare resolved="$(tfenv-resolve-version ${requested})";
declare resolved;
resolved="$(tfenv-resolve-version ${requested})" || log 'error' "Failed to resolve ${requested} version";

declare version="${resolved%%\:*}";
declare regex="${resolved##*\:}";
Expand Down

0 comments on commit eefabe5

Please sign in to comment.