bugfix for newer zypper (SLES12SP1) releases, different column numbers in output

This commit is contained in:
Daniel Heule 2016-03-22 11:01:19 +01:00
parent 32557cfa2c
commit 0179904675
1 changed files with 1 additions and 1 deletions

View File

@ -27,4 +27,4 @@ else
fi
# simpler command which works only on SLES11 SP3 or newer:
# echo $(zypper ls -u -E | grep -E "\<$uri\>" | cut -d'|' -f 7)
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\<$uri\>" | cut -d'|' -f 7 )
echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\<$uri\>" | awk '{print $NF}')