Skip to content

Commit

Permalink
Merge pull request #5 from opentofuutils/fix/uninstall
Browse files Browse the repository at this point in the history
Fix tofuenv uninstall
  • Loading branch information
Nmishin authored Dec 27, 2023
2 parents 5af7d88 + 2ad58cc commit 3d4ce14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/tofuenv-uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ version="$(tofuenv-list | sed -E 's/^(\*| )? //g; s/ \(set by .+\)$//' | grep -e
[ -n "${version}" ] || log 'error' "No versions matching '${regex}' found in local";

dst_path="${TOFUENV_CONFIG_DIR}/versions/${version}";
if [ -f "${dst_path}/opentofu" ]; then
if [ -f "${dst_path}/tofu" ]; then
log 'info' "Uninstall OpenTofu v${version}";
rm -r "${dst_path}";

Expand Down

0 comments on commit 3d4ce14

Please sign in to comment.