From 2ad58cca5d0cfdb8bc7a142c2beacf44225a1f7e Mon Sep 17 00:00:00 2001 From: Nikolai Mishin Date: Wed, 27 Dec 2023 20:35:12 +0100 Subject: [PATCH] Fix tofuenv uninstall --- libexec/tofuenv-uninstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/tofuenv-uninstall b/libexec/tofuenv-uninstall index 093e947..941e8db 100755 --- a/libexec/tofuenv-uninstall +++ b/libexec/tofuenv-uninstall @@ -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}";