[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")
|
cmd("sudo apt-get update -q=2")
|
||||||
aptInstall("tofu")
|
aptInstall("tofu")
|
||||||
if (!checkPackage("tofu")) {
|
if (checkPackage("tofu")) {
|
||||||
ProvResult(false, err = "tofu not successfully installed")
|
ProvResult(true, info = "Opentofu is installed.")
|
||||||
} else {
|
} else {
|
||||||
ProvResult(false, info = "Opentofu is installed.")
|
ProvResult(false, err = "Opentofu not installed successfully.")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ProvResult(false, err = "Opentofu could not be downloaded and installed.")
|
ProvResult(false, err = "Opentofu could not be downloaded and installed.")
|
||||||
|
|
Loading…
Reference in a new issue