From de84454d3f19337fadefd89b55c0391e5cea30ef Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sun, 12 Mar 2017 19:27:16 +0100 Subject: [PATCH] Cleanup --- include/tests_ports_packages | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/tests_ports_packages b/include/tests_ports_packages index e1e87136..c96eee4b 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -218,8 +218,8 @@ ################################################################################# # # Test : PKGS-7312 - # Description : Check for available package updates when pacman package is used (Arch Linux) - if [ ! "${PACMANBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi + # Description : Check for available package updates when pacman package is used + if [ ! -z "${PACMANBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no PKGS-7312 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Checking available updates for pacman based system" if [ ${SKIPTEST} -eq 0 ]; then FOUND=0 @@ -249,7 +249,7 @@ # Test : PKGS-7314 # Description : Check pacman.conf options PACMANCONF="/etc/pacman.conf" - if [ ! "${PACMANBINARY}" = "" -a -f ${PACMANCONF} ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi + if [ ! -z "${PACMANBINARY}" -a -f ${PACMANCONF} ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no PKGS-7314 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Checking pacman configuration options" if [ ${SKIPTEST} -eq 0 ]; then COUNT=0