mirror of https://github.com/CISOfy/lynis.git
Added missing pipe
This commit is contained in:
parent
b67d9233eb
commit
352ea8c21c
|
@ -871,7 +871,7 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
if [ ! -z "${PYTHONBINARY}" ]; then
|
||||
LogText "Test: checking enabled repositories"
|
||||
REPOS=$(${PYTHONBINARY} -c 'import yum ; yb = yum.YumBase() ; print [(r.id + "=" + str(r.gpgcheck)) for r in yb.repos.listEnabled()]' | ${GREPBINARY} "^\[" | ${TRBINARY} -d '[] ' ${TRBINARY} -d "'" | ${SEDBINARY} 's/,/ /g')
|
||||
REPOS=$(${PYTHONBINARY} -c 'import yum ; yb = yum.YumBase() ; print [(r.id + "=" + str(r.gpgcheck)) for r in yb.repos.listEnabled()]' | ${GREPBINARY} "^\[" | ${TRBINARY} -d '[] ' | ${TRBINARY} -d "'" | ${SEDBINARY} 's/,/ /g')
|
||||
if [ -z "${REPOS}" ]; then LogText "Result: found no repositories"; fi
|
||||
for I in ${REPOS}; do
|
||||
REPO=$(echo ${I} | ${AWKBINARY} -F= '{print $1}')
|
||||
|
|
Loading…
Reference in New Issue