Ignore:
Timestamp:
Oct 20, 2004, 10:10:39 PM (17 years ago)
Author:
Dominic Hargreaves
Message:

Minor bugfix in Build.pm: don't uselessly fail to create a directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Build.pm

    r537 r538  
    113113        }
    114114    }
    115     print "Making sure that $custom_template_path exists.\n";
    116     mkdir $custom_template_path or warn "Could not make $custom_template_path";
     115    unless (-d $custom_template_path) {
     116        print "Creating directory $custom_template_path.\n";
     117        mkdir $custom_template_path or warn "Could not make $custom_template_path";
     118    }
    117119}
    118120
Note: See TracChangeset for help on using the changeset viewer.