<p>George Joseph <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/9409">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pretty_print: Add another test for TERM<br><br>Change-Id: I8a6fae6b005b952a41b00cd98c89ab5acce6bb02<br>---<br>M contrib/scripts/pretty_print<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/scripts/pretty_print b/contrib/scripts/pretty_print</span><br><span>index b50f87d..8528eb9 100755</span><br><span>--- a/contrib/scripts/pretty_print</span><br><span>+++ b/contrib/scripts/pretty_print</span><br><span>@@ -53,7 +53,10 @@</span><br><span> esac</span><br><span> done</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-if [ x"$TERM" = x ] ; then</span><br><span style="color: hsl(120, 100%, 40%);">+tput longname 2&>/dev/null</span><br><span style="color: hsl(120, 100%, 40%);">+noterm=$?</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if [ $noterm -ne 0 -o x"$TERM" = x -o "$TERM" = "unknown" ] ; then</span><br><span> NO_TIMER=1</span><br><span> NO_COLOR=1</span><br><span> if [ $TERM_WIDTH -le 0 ] ; then</span><br><span>@@ -215,4 +218,4 @@</span><br><span> </span><br><span> trap - INT ERR</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-[ $countpid -gt 0 ] && kill $countpid &>/dev/null</span><br><span style="color: hsl(120, 100%, 40%);">+[ ${countpid:-0} -gt 0 ] && kill $countpid &>/dev/null</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9409">change 9409</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9409"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I8a6fae6b005b952a41b00cd98c89ab5acce6bb02 </div>
<div style="display:none"> Gerrit-Change-Number: 9409 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>