Skip to content

Commit 928e529

Browse files
committed
simplify bin/my-cookiecutter.pl
1 parent 6b598bc commit 928e529

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

bin/my-cookiecutter.pl

+8-22
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,11 @@
66
use lib './lib';
77
use Shlomif::MySystem qw/ my_system /;
88

9-
my $src_dn =
10-
"$ENV{HOME}/.cookiecutters/cookiecutter--shlomif-latemp-sites/\{\{cookiecutter.project_slug\}\}";
11-
12-
# if ( -d $src_dn )
13-
if (0)
14-
{
15-
my_system( [ "rsync", "-ra", "$src_dn/", "./" ], "rsync failed", );
16-
require Path::Tiny;
17-
Path::Tiny::path("./bin/batch-inplace-html-minifier")
18-
->edit_raw( sub { s/\n\{% (?:end)?raw %\}\n/\n/g; } );
19-
}
20-
else
21-
{
22-
my_system(
23-
[
24-
'cookiecutter', '-f', '--no-input',
25-
'gh:shlomif/cookiecutter--shlomif-latemp-sites',
26-
'project_slug=.',
27-
],
28-
'cookiecutter failed.'
29-
);
30-
}
9+
my_system(
10+
[
11+
'cookiecutter', '-f', '--no-input',
12+
'gh:shlomif/cookiecutter--shlomif-latemp-sites',
13+
'project_slug=.',
14+
],
15+
'cookiecutter failed.'
16+
);

0 commit comments

Comments
 (0)