Fix for gcloud snap issue (#144)

This commit is contained in:
Dylan M. Taylor
2022-11-04 09:48:05 -04:00
committed by GitHub
parent 3ebaac3a1d
commit a6da5181f2

View File

@@ -196,12 +196,16 @@ pub fn run_krew_upgrade(run_type: RunType) -> Result<()> {
pub fn run_gcloud_components_update(run_type: RunType) -> Result<()> {
let gcloud = utils::require("gcloud")?;
print_separator("gcloud");
if gcloud.starts_with("/snap") {
Ok(())
} else {
print_separator("gcloud");
run_type
.execute(gcloud)
.args(["components", "update", "--quiet"])
.check_run()
run_type
.execute(gcloud)
.args(["components", "update", "--quiet"])
.check_run()
}
}
pub fn run_jetpack(run_type: RunType) -> Result<()> {