Skip to content

Commit

Permalink
Proposed improvement that pgBasEnv only detects clusters of the curre…
Browse files Browse the repository at this point in the history
…nt user. See issue #13.
  • Loading branch information
rolandstirnimann committed Apr 21, 2023
1 parent 7ddd0c2 commit e0ed2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pgbasenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ local existing_data_ids="$1"
local existing_ids=" $(echo "$existing_data_ids" | cut -d";" -f4) "
local d dir size ftime home fhtime version data_id data_ids existing_data_id id_length orig_length skip existing_port existing_home
for d in $(echo $ALL_DIRS); do
if [[ -f $d/pg_control ]]; then
if [[ -f $d/pg_control && -O $d/pg_control ]]; then
dir="$(dirname $d)"
[[ -f $dir/PG_VERSION ]] && version=$(head -1 $dir/PG_VERSION) || version=0
if [[ -f $dir/postmaster.opts ]]; then
Expand Down

0 comments on commit e0ed2f5

Please sign in to comment.