Skip to content

Commit

Permalink
fix: only run ensure_gpg_permissions if gpg is available
Browse files Browse the repository at this point in the history
  • Loading branch information
dekobon committed Mar 7, 2024
1 parent 74792b0 commit b08a9ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nginx-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ fn main() -> Result<(), Box<dyn StdError>> {
// Import GPG keys used to verify dependency tarballs
import_gpg_keys(&cache_dir)?;
println!("GPG keys imported");
// Ensure GPG directory has the correct permissions
ensure_gpg_permissions(&cache_dir)?;
// Ensure GPG directory has the correct permissions, if gpg is available
if gpg_path().is_some() {
ensure_gpg_permissions(&cache_dir)?;
}
println!("Verified GPG permissions");
// Configure and Compile NGINX
let (_nginx_install_dir, nginx_src_dir) = compile_nginx()?;
Expand Down

0 comments on commit b08a9ee

Please sign in to comment.