Skip to content

Commit 6a500b0

Browse files
committed
[*] check for Windows abs path in GetGoPsutilDiskPG()
1 parent a336d46 commit 6a500b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/reaper/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const sqlPgDirs = `select name, path from
3535
('data_directory', current_setting('data_directory')),
3636
('pg_wal', current_setting('data_directory')||'/pg_wal'),
3737
('log_directory', case
38-
when current_setting('log_directory') ~ '/.+' then current_setting('log_directory')
38+
when current_setting('log_directory') ~ '^(\w:)?\/.+' then current_setting('log_directory')
3939
else current_setting('data_directory') || '/' || current_setting('log_directory')
4040
end)) as d(name, path)
4141
union all

0 commit comments

Comments
 (0)