summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpiny/lib/Piny/Config.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm
index 1242c8f..5cd99da 100644
--- a/libpiny/lib/Piny/Config.pm
+++ b/libpiny/lib/Piny/Config.pm
@@ -85,7 +85,7 @@ sub _build__conf {
$conf = { };
};
- if ( -e "/etc/piny-default.conf" ) {
+ if ( -s "/etc/piny-default.conf" ) {
my $default = Config::Simple->new( "/etc/piny-default.conf" )->vars;
@@ -97,7 +97,7 @@ sub _build__conf {
};
- if ( -e "/etc/piny-override.conf" ) {
+ if ( -s "/etc/piny-override.conf" ) {
my $override = Config::Simple->new( "/etc/piny-override.conf" )->vars;
@@ -119,7 +119,7 @@ sub save {
croak "Can't save a Piny::Config if the confpath is not set!";
};
- if ( -e "/etc/piny-override.conf" ) {
+ if ( -s "/etc/piny-override.conf" ) {
my $override = Config::Simple->new( "/etc/piny-override.conf" )->vars;
@@ -131,7 +131,7 @@ sub save {
};
- if ( -e "/etc/piny-default.conf" ) {
+ if ( -s "/etc/piny-default.conf" ) {
my $default = Config::Simple->new( "/etc/piny-default.conf" )->vars;