From 02faa00ec90700ae72f74d1753fbaec18375270f Mon Sep 17 00:00:00 2001 From: Andrew Chilton Date: Mon, 5 May 2008 23:27:19 +1200 Subject: [PATCH] Stop warnings if some ENV vars aren't defined. --- bin/cil | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/cil b/bin/cil index 8915739..4ef1f89 100755 --- a/bin/cil +++ b/bin/cil @@ -19,7 +19,6 @@ use strict; use warnings; -use Data::Dumper; use CIL::Issue; use CIL::Comment; use Term::CallEditor; @@ -37,11 +36,14 @@ my $COMMANDS = { comment => 1, }; +my $gan = $ENV{GIT_AUTHOR_NAME} || 'Your Name'; +my $gae = $ENV{GIT_AUTHOR_EMAIL} || 'you@example.org'; + my $new_issue_text = <<"EOF"; [Issue] Summary = Status =New -CreatedBy =$ENV{GIT_AUTHOR_NAME} <$ENV{GIT_AUTHOR_EMAIL}> +CreatedBy =$gan <$gae> Labels = Description = < +CreatedBy = $gan <$gae> Description = <