From 57e154df7b94c2c474a023be877a5848c74b8931 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Jul 2012 17:01:15 -0400 Subject: [PATCH] normalize names more --- .bin/er-close | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bin/er-close b/.bin/er-close index b967365..a9edb8d 100755 --- a/.bin/er-close +++ b/.bin/er-close @@ -1,6 +1,7 @@ #!/bin/bash . ~/.profile.d/gentoo.sh +. ~/.profile.d/aliases.sh op=${0##*/} ops=( ${op//-/ } ) @@ -52,6 +53,11 @@ while [[ $# -ne 0 ]] ; do name=$(xml sel -E utf8 -t -m bugzilla/bug/long_desc -v who -n $xml | \ head -${c} | tail -1 | cut -d@ -f1) fi + new_name=$(echo "${name}" | scrub_html | sed 's: (.*)$::') + if [[ ${new_name} != "${name}" ]] ; then + echo "Normalizing '${name}' to '${new_name}'" + name=${new_name} + fi if [[ -n ${cl_msg} ]] ; then cl_msg+=" " -- 2.39.5