chore: fix simple typos in code and comments (split var, whether, Extensions) (#1318)
Co-authored-by: niStee <52573120+niStee@users.noreply.github.comclear>
This commit is contained in:
@@ -97,9 +97,9 @@ fn run() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for env in opt.env_variables() {
|
for env in opt.env_variables() {
|
||||||
let mut splitted = env.split('=');
|
let mut parts = env.split('=');
|
||||||
let var = splitted.next().unwrap();
|
let var = parts.next().unwrap();
|
||||||
let value = splitted.next().unwrap();
|
let value = parts.next().unwrap();
|
||||||
env::set_var(var, value);
|
env::set_var(var, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ impl Step {
|
|||||||
Gem => runner.execute(*self, "gem", || generic::run_gem(ctx))?,
|
Gem => runner.execute(*self, "gem", || generic::run_gem(ctx))?,
|
||||||
Ghcup => runner.execute(*self, "ghcup", || generic::run_ghcup_update(ctx))?,
|
Ghcup => runner.execute(*self, "ghcup", || generic::run_ghcup_update(ctx))?,
|
||||||
GitRepos => runner.execute(*self, "Git Repositories", || git::run_git_pull(ctx))?,
|
GitRepos => runner.execute(*self, "Git Repositories", || git::run_git_pull(ctx))?,
|
||||||
GithubCliExtensions => runner.execute(*self, "GitHub CLI Extenstions", || {
|
GithubCliExtensions => runner.execute(*self, "GitHub CLI Extensions", || {
|
||||||
generic::run_ghcli_extensions_upgrade(ctx)
|
generic::run_ghcli_extensions_upgrade(ctx)
|
||||||
})?,
|
})?,
|
||||||
GnomeShellExtensions =>
|
GnomeShellExtensions =>
|
||||||
|
|||||||
@@ -677,7 +677,7 @@ pub fn run_nix_helper(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// We assume that if the user has set these variables, we can throw an error if nh cannot find
|
// We assume that if the user has set these variables, we can throw an error if nh cannot find
|
||||||
// a flake there. So we do not anymore perform an eval check to find out wether we should skip
|
// a flake there. So we do not anymore perform an eval check to find out whether we should skip
|
||||||
// or not.
|
// or not.
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
if darwin_flake_path.is_some() || fallback_flake_path.is_some() {
|
if darwin_flake_path.is_some() || fallback_flake_path.is_some() {
|
||||||
|
|||||||
Reference in New Issue
Block a user