Cleanup
This commit is contained in:
@@ -883,7 +883,6 @@ impl Config {
|
|||||||
.and_then(|yarn| yarn.use_sudo)
|
.and_then(|yarn| yarn.use_sudo)
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
pub fn firmware_upgrade(&self) -> bool {
|
pub fn firmware_upgrade(&self) -> bool {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ impl Yarn {
|
|||||||
fn upgrade(&self, run_type: RunType, use_sudo: bool) -> Result<()> {
|
fn upgrade(&self, run_type: RunType, use_sudo: bool) -> Result<()> {
|
||||||
print_separator("Yarn Package Manager");
|
print_separator("Yarn Package Manager");
|
||||||
let args = ["global", "upgrade"];
|
let args = ["global", "upgrade"];
|
||||||
|
|
||||||
if use_sudo {
|
if use_sudo {
|
||||||
run_type
|
run_type
|
||||||
.execute("sudo")
|
.execute("sudo")
|
||||||
@@ -189,8 +189,6 @@ pub fn run_yarn_upgrade(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pub fn deno_upgrade(ctx: &ExecutionContext) -> Result<()> {
|
pub fn deno_upgrade(ctx: &ExecutionContext) -> Result<()> {
|
||||||
let deno = require("deno")?;
|
let deno = require("deno")?;
|
||||||
let deno_dir = ctx.base_dirs().home_dir().join(".deno");
|
let deno_dir = ctx.base_dirs().home_dir().join(".deno");
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ pub fn run_guix(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
if should_upgrade {
|
if should_upgrade {
|
||||||
return run_type.execute(&guix).args(&["package", "-u"]).check_run();
|
return run_type.execute(&guix).args(&["package", "-u"]).check_run();
|
||||||
}
|
}
|
||||||
Err(SkipStep(String::from("Guix Pull Failed, Skipping")).into())
|
Err(SkipStep(String::from("Guix Pull Failed, Skipping")).into())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn run_nix(ctx: &ExecutionContext) -> Result<()> {
|
pub fn run_nix(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
|||||||
Reference in New Issue
Block a user