From: Mike Frysinger Date: Tue, 31 Jul 2012 21:01:15 +0000 (-0400) Subject: normalize names more X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=57e154df7b94c2c474a023be877a5848c74b8931;p=home.git normalize names more --- 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+=" "