Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: redirect 'systemctl' check stderr to /dev/null #55

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ version = "0.2.18"
anyhow = "1.0.71"
clap = "3.2.20"
envhub-ext = {path = "../ext", version = "0.1.1"}
envhub-hm = {path = "../hm", version = "0.2.4"}
envhub-pkgs = {path = "../pkgs", version = "0.1.4"}
envhub-hm = {path = "../hm", version = "0.2.5"}
envhub-pkgs = {path = "../pkgs", version = "0.1.5"}
envhub-providers = {path = "../providers", version = "0.2.0"}
envhub-stow = {path = "../stow", version = "0.1.0"}
envhub-types = {path = "../types", version = "0.2.2"}
Expand Down
2 changes: 1 addition & 1 deletion crates/hm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["nix", "shell", "environment", "dotfiles"]
license = "MIT"
name = "envhub-hm"
repository = "https://github.com/tsirysndr/envhub"
version = "0.2.4"
version = "0.2.5"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion crates/hm/src/nix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn install() -> Result<(), Error> {
);
let mut child = Command::new("sh")
.arg("-c")
.arg("type systemctl > /dev/null")
.arg("type systemctl > /dev/null 2> /dev/null")
.spawn()?;
let status = child.wait()?;
let init = match status.code() {
Expand Down
2 changes: 1 addition & 1 deletion crates/pkgs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["nix", "shell", "environment", "dotfiles"]
license = "MIT"
name = "envhub-pkgs"
repository = "https://github.com/tsirysndr/envhub"
version = "0.1.4"
version = "0.1.5"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion crates/pkgs/src/nix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl PackageManager for Nix {
);
let mut child = Command::new("sh")
.arg("-c")
.arg("type systemctl > /dev/null")
.arg("type systemctl > /dev/null 2> /dev/null")
.spawn()?;
let status = child.wait()?;
let init = match status.code() {
Expand Down
Loading