summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MDK/Common/File.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MDK/Common/File.pm b/MDK/Common/File.pm
index 3cc7e6d..87923ee 100644
--- a/MDK/Common/File.pm
+++ b/MDK/Common/File.pm
@@ -132,7 +132,7 @@ sub glob_ {
sub substInFile(&@) {
my ($f, $file) = @_;
- if (-e $file) {
+ if (-s $file) {
local @ARGV = $file;
local ($^I, $_) = '';
while (<>) { &$f($_); print }