Skip to content

Commit

Permalink
Disable elevation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
h33p committed Mar 22, 2022
1 parent 100c279 commit 2635eda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion scanflow-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scanflow-cli"
version = "0.2.0-beta1"
version = "0.2.0-beta2"
authors = ["Aurimas Blažulionis <0x60@pm.me>"]
edition = "2018"
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions scanflow-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ fn main() -> Result<()> {
let (chain, target, elevate, level) = extract_args(&matches)?;

if elevate {
#[cfg(unix)]
sudo::escalate_if_needed().expect("failed to elevate privileges");
#[cfg(windows)]
log::warn!("elevation not supported on windows!");
}

TermLogger::init(
Expand Down

0 comments on commit 2635eda

Please sign in to comment.