Skip to content

Commit

Permalink
Skipping processing dir if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwills-optus committed Sep 30, 2016
1 parent 848b719 commit 32cbaba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/File/TypeCategories.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ sub BUILD {
# import each config file the each subsiquent config overwrites the
# previous more general config.
for my $config_dir ($dir, $ENV{HOME}, '.') {
next if ! $config_dir || !-d $config_dir;
my $config_file = "$config_dir/$config_name";
next if !-f $config_file;

Expand Down

0 comments on commit 32cbaba

Please sign in to comment.