test01_pkgquality: Do not use the operator '|&'. Use instead '2>&1 |' which is compatible at least with bash 3.2

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-10-11 21:20:34 +02:00
parent ffc10a6e87
commit 4c24d74501
2 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,11 @@ Changes in version 1.12.6
* autospec.spec - Davide Madrisan:
Add a missing build requirement: make.
+ update
* tests/test01_pkgquality - Davide Madrisan:
Do not use the operator '|&'. Use instead '2>&1 |' which is compatible at
least with bash 3.2.
-------------------------------------------------------------------------------
Changes in version 1.12.5

View File

@ -264,7 +264,7 @@ $(LC_ALL=C ldd -d -r "$f" 2>/dev/null |& grep "undefined symbol")"
if [ "$undefsyms" ]; then
notify.warning "${NOTE}${pck##*/}${NORM}"
echo -n "${CRIT}"
LC_ALL=C ldd -d -r "$f" 2>/dev/null |& \
LC_ALL=C ldd -d -r "$f" 2>&1 | \
grep "undefined symbol" | sed "s,.*, - &,"
echo -n "${NORM}"
let "total_issues += 1"