Skip to content

Commit

Permalink
docs: Correct BYPASS_LLT_SCAN to BYPASS_LLT_SECRETS
Browse files Browse the repository at this point in the history
  • Loading branch information
lcruz99 committed Aug 13, 2024
1 parent ac9faeb commit 85cd5a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To go through the short TCLI tutorial you need also [docker](https://docs.docker

### Build

You can build the `libtelio` library using standard `cargo build` command. Ensure to set the `BYPASS_LLT_SCAN` environment variable to skip the LLT scan:
You can build the `libtelio` library using standard `cargo build` command. Ensure to set the `BYPASS_LLT_SECRETS` environment variable to skip the LLT scan:
```shell
BYPASS_LLT_SECRETS=1 cargo build
```
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ fn build() -> Result<cc::Build> {
.is_ok_and(|value| value == "true")
{
println!("cargo:rerun-if-changed=.prepared_llt_secrets");
println!("cargo:rerun-if-env-changed=BYPASS_LLT_SCAN");
println!("cargo:rerun-if-env-changed=BYPASS_LLT_SECRETS");

// Check for sec scan
let prepared_path = Path::new(".prepared_llt_secrets");
#[allow(clippy::panic)]
if !prepared_path.is_file() {
match env::var("BYPASS_LLT_SECRETS") {
Ok(_) => println!("cargo:warning=BYPASS_LLT_SCAN IS SET, COMMIT CAREFULLY!!"),
Ok(_) => println!("cargo:warning=BYPASS_LLT_SECRETS IS SET, COMMIT CAREFULLY!!"),
Err(_) => {
panic!("Hooks not found, either run checkout scripts or run with BYPASS_LLT_SECRETS environment variable set");
}
Expand Down

0 comments on commit 85cd5a8

Please sign in to comment.