Skip to content

Commit

Permalink
Error better using uninstall with latest-allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
OJFord authored and Zordrak committed Oct 1, 2022
1 parent cd77bbb commit c568997
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libexec/tfenv-uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ if [[ "${version_requested}" =~ ^min-required$ ]]; then
log 'error' 'min-required is an unsupported option for uninstall';
fi;

if [[ "${version_requested}" == latest-allowed ]]; then
log 'error' 'latest-allowed is an unsupported option for uninstall';
fi;

if [[ "${version_requested}" =~ ^latest\:.*$ ]]; then
version="${version_requested%%\:*}";
regex="${version_requested##*\:}";
Expand Down

0 comments on commit c568997

Please sign in to comment.