diff options
author | Emma Humphries <emceeaich@users.noreply.github.com> | 2017-07-22 03:26:13 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-22 03:26:13 +0200 |
commit | a01545cbec992560a5bfe402cf395aabb97d5cfd (patch) | |
tree | 7acbf9e011e1627a1e4c66123e918845788b7eb4 /scripts | |
parent | b56598c8d9f9faea229c4bc9ea29f26f8b7fbd9e (diff) | |
download | bugzilla-a01545cbec992560a5bfe402cf395aabb97d5cfd.tar.gz bugzilla-a01545cbec992560a5bfe402cf395aabb97d5cfd.tar.xz |
Bug 1381567 - wrap heredoc in an if
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/resolve_bugs.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/resolve_bugs.pl b/scripts/resolve_bugs.pl index 31f38aae8..70ed30c23 100755 --- a/scripts/resolve_bugs.pl +++ b/scripts/resolve_bugs.pl @@ -57,12 +57,15 @@ if ($bug_count == 0) { exit 1; } -print STDERR <<EOF; +# if running from commmand line +if (-t STDIN) { + print STDERR <<EOF; About to resolve $bug_count bugs as $resolution Press <Ctrl-C> to stop or <Enter> to continue... EOF -getc(); + getc(); +} foreach my $row (@$data) { my $bug_id = shift @$row; |