projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be7ce3
)
Don't assume that everyone has a home. Per github issue #23
author
Greg Sabino Mullane
<greg@endpoint.com>
Thu, 21 Feb 2013 02:25:49 +0000
(21:25 -0500)
committer
Greg Sabino Mullane
<greg@endpoint.com>
Thu, 21 Feb 2013 02:25:49 +0000
(21:25 -0500)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 041e520cef816a9e208eb841468bd8991caa9dba..9cffd2c9dc31af2b33e3ae79409a90c00338ad14 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-865,7
+865,7
@@
if (! $opt{'no-check_postgresrc'}) {
if (-e '.check_postgresrc') {
$rcfile = '.check_postgresrc';
}
- elsif (-e "$ENV{HOME}/.check_postgresrc") {
+ elsif (
exists $ENV{HOME} and
-e "$ENV{HOME}/.check_postgresrc") {
$rcfile = "$ENV{HOME}/.check_postgresrc";
}
elsif (-e '/etc/check_postgresrc') {