diff options
| -rwxr-xr-x | Documentation/maintainers/bump_new_revision.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/maintainers/bump_new_revision.sh b/Documentation/maintainers/bump_new_revision.sh index de8744cd78d..7a0a1cf8cdf 100755 --- a/Documentation/maintainers/bump_new_revision.sh +++ b/Documentation/maintainers/bump_new_revision.sh @@ -302,17 +302,17 @@ case ${OPERATION} in [[ ${P1/*-/} == r* ]] && P1=`echo ${P1} | sed -e "s:${P1/*-/}::g" -e "s:-$::g"` PV=${P1/*-/} PN=`echo ${P1} | sed -e "s:${P1/*-/}::g" -e "s:-$::g"` - if [[ $(echo ${EBUILD} | sed -e "s:\${PN}:${PN}:g" -e "s:\${PV}:${PV}:g" -e "s:\${P}:${PN}-${PV}:g" |grep "${PATCH}" |wc -l) -gt 0 ]]; then + if [[ $(echo ${EBUILD} | sed -e "s:\${PN}:${PN}:g" -e "s:\${PV}:${PV}:g" -e "s:\${P}:${PN}-${PV}:g" |grep "${PATCH}" |wc -l) != "0" ]]; then PATCH_IN_USE="true" popd &> /dev/null break fi done - if [[ ${PATCH_IN_USE} = "false" ]]; then + if [[ ${PATCH_IN_USE} == "false" ]]; then echo "Removing ${PATCH}. No longer used in package ${EBUILD_BASEDIR}." pushd files/ &> /dev/null git rm -rf $(find ./ -type f -name ${PATCH}) - popd &> + popd &> /dev/null fi done fi |
