Fix for gcloud snap issue (#144)
This commit is contained in:
@@ -196,6 +196,9 @@ pub fn run_krew_upgrade(run_type: RunType) -> Result<()> {
|
|||||||
pub fn run_gcloud_components_update(run_type: RunType) -> Result<()> {
|
pub fn run_gcloud_components_update(run_type: RunType) -> Result<()> {
|
||||||
let gcloud = utils::require("gcloud")?;
|
let gcloud = utils::require("gcloud")?;
|
||||||
|
|
||||||
|
if gcloud.starts_with("/snap") {
|
||||||
|
Ok(())
|
||||||
|
} else {
|
||||||
print_separator("gcloud");
|
print_separator("gcloud");
|
||||||
|
|
||||||
run_type
|
run_type
|
||||||
@@ -203,6 +206,7 @@ pub fn run_gcloud_components_update(run_type: RunType) -> Result<()> {
|
|||||||
.args(["components", "update", "--quiet"])
|
.args(["components", "update", "--quiet"])
|
||||||
.check_run()
|
.check_run()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn run_jetpack(run_type: RunType) -> Result<()> {
|
pub fn run_jetpack(run_type: RunType) -> Result<()> {
|
||||||
let jetpack = utils::require("jetpack")?;
|
let jetpack = utils::require("jetpack")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user