mirror of
https://github.com/epi052/feroxbuster
synced 2024-07-08 19:45:45 +00:00
fixed build script when on cd pipeline
This commit is contained in:
parent
e6753d9474
commit
2af87971d5
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -589,7 +589,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "feroxbuster"
|
||||
version = "2.2.4"
|
||||
version = "2.2.5"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"assert_cmd",
|
||||
|
|
8
build.rs
8
build.rs
|
@ -55,14 +55,6 @@ fn main() {
|
|||
// - linux: $XDG_CONFIG_HOME or $HOME/.config
|
||||
// - macOS: $HOME/Library/Application Support
|
||||
// - windows: {FOLDERID_RoamingAppData}
|
||||
println!(
|
||||
"did we find it? {}",
|
||||
std::env::var("IN_PIPELINE").unwrap_or(String::from("no"))
|
||||
);
|
||||
if std::env::var("IN_PIPELINE").is_ok() {
|
||||
return;
|
||||
}
|
||||
|
||||
let mut config_dir = dirs::config_dir().expect("Couldn't resolve user's config directory");
|
||||
config_dir = config_dir.join("feroxbuster"); // $HOME/.config/feroxbuster
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user