fixed build script when on cd pipeline

This commit is contained in:
epi 2021-06-15 11:46:20 -05:00
parent e6753d9474
commit 2af87971d5
2 changed files with 1 additions and 9 deletions

2
Cargo.lock generated
View File

@ -589,7 +589,7 @@ dependencies = [
[[package]]
name = "feroxbuster"
version = "2.2.4"
version = "2.2.5"
dependencies = [
"anyhow",
"assert_cmd",

View File

@ -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