[skip ci] fix installation opentofu
This commit is contained in:
parent
ad6c761e7a
commit
fe2767c982
1 changed files with 3 additions and 3 deletions
|
@ -31,10 +31,10 @@ fun Prov.installOpentofu(
|
|||
|
||||
cmd("sudo apt-get update -q=2")
|
||||
aptInstall("tofu")
|
||||
if (!checkPackage("tofu")) {
|
||||
ProvResult(false, err = "tofu not successfully installed")
|
||||
if (checkPackage("tofu")) {
|
||||
ProvResult(true, info = "Opentofu is installed.")
|
||||
} else {
|
||||
ProvResult(false, info = "Opentofu is installed.")
|
||||
ProvResult(false, err = "Opentofu not installed successfully.")
|
||||
}
|
||||
} else {
|
||||
ProvResult(false, err = "Opentofu could not be downloaded and installed.")
|
||||
|
|
Loading…
Reference in a new issue