Skip to content

Commit 1c443ac

Browse files
Bo98fxcoudert
authored andcommitted
cmd/postgresql-upgrade-database: use ENV.fetch
1 parent 1676fcb commit 1c443ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postgresql-upgrade-database.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def postgresql_upgrade_database
9898
]
9999
locale_settings.each do |setting|
100100
sql = "SELECT setting FROM pg_settings WHERE name LIKE '#{setting}';"
101-
value = Utils.popen_read("#{old_bin}/psql", "postgres", "-qtAX", "-U", ENV["USER"], "-c", sql).strip
101+
value = Utils.popen_read("#{old_bin}/psql", "postgres", "-qtAX", "-U", ENV.fetch("USER"), "-c", sql).strip
102102

103103
next if value.empty?
104104

0 commit comments

Comments
 (0)