Skip to content

Commit

Permalink
fix: handle empty PG_BIN (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesGuthrie authored Dec 10, 2024
1 parent 027b3f4 commit bd83165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/extension/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def clean_sql() -> None:

def postgres_bin_dir() -> Path:
bin_dir = os.getenv("PG_BIN")
if Path(bin_dir).is_dir():
if bin_dir is not None and Path(bin_dir).is_dir():
return Path(bin_dir).resolve()
else:
bin_dir = Path(f"/usr/lib/postgresql/{pg_major()}/bin")
Expand Down

0 comments on commit bd83165

Please sign in to comment.