Skip to content

Commit

Permalink
Fixes issue where the install script fails if pg_config in not in use…
Browse files Browse the repository at this point in the history
…rs path. Closes #404 (#405)
  • Loading branch information
pskrbasu authored Jan 18, 2024
1 parent 939dc2b commit 92f4a2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/steampipe_postgres_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ main() {
fi

# Locate the PostgreSQL installation directory and version
PG_CONFIG=$(command -v pg_config)
if command -v pg_config >/dev/null; then
PG_CONFIG=$(command -v pg_config)
fi
if [ -z "$PG_CONFIG" ]; then
echo "Warning: 'pg_config' was not found in your PATH."
printf "Please enter the full path to your PostgreSQL installation directory (e.g., /usr/lib/postgresql/14): "
Expand Down

0 comments on commit 92f4a2d

Please sign in to comment.