aocinit

Perl utility to initialize directories and files for the Advent of Code
git clone git://git.samirparikh.com/aocinit
Log | Files | Refs | README | LICENSE

commit 1f71dd1227a7b297d51ae040a8ca76a0c197d22e
parent d05c6679bcd6066235a88279719ca2dde2a5181a
Author: Samir Parikh <noreply@samirparikh.com>
Date:   Mon, 26 Dec 2022 22:53:25 +0000

update program so that execution does not end if boilerplate file
already exists so that we can continue with downloading the input
file in case it does not exist.

Diffstat:
Maocinit | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/aocinit b/aocinit @@ -92,7 +92,8 @@ sub create_boilerplate_file { say "creating boilerplate file..."; if ( -e $day_file ) { # don't overwrite existing file - die "solution file for this day already exists"; + warn "solution file for this day already exists"; + return; } open my $bp_file, '>', $day_file; say $bp_file $boilerplate;