diff options
Diffstat (limited to 'extensions/create.pl')
-rwxr-xr-x | extensions/create.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/create.pl b/extensions/create.pl index 80fc49448..8927c172c 100755 --- a/extensions/create.pl +++ b/extensions/create.pl @@ -30,12 +30,12 @@ if ($name !~ /^[A-Z]/) { ThrowUserError('extension_first_letter_caps', { name => $name }); } -my $extension_dir = "$base_dir/$name"; -mkpath($extension_dir) +my $extension_dir = "$base_dir/$name"; +mkpath($extension_dir) || die "$extension_dir already exists or cannot be created.\n"; my $lcname = lc($name); -foreach my $path (qw(lib web template/en/default/hook), +foreach my $path (qw(lib web template/en/default/hook), "template/en/default/$lcname") { mkpath("$extension_dir/$path") || die "$extension_dir/$path: $!"; |