From 0e9b63a6edb7d5a3e821e546f186d29fc1fcfb72 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 24 Mar 2016 17:28:53 +0100 Subject: [PATCH] Adjusted variable to properly check systemd directory --- include/tests_authentication | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/tests_authentication b/include/tests_authentication index 8c80823a..d0493d0e 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -859,13 +859,13 @@ fi # Systemd support - SYTEMD_DIRECTORY="/lib/systemd/system" + SYSTEMD_DIRECTORY="/lib/systemd/system" if [ -d ${SYSTEMD_DIRECTORY} ]; then FILES="console-shell.service emergency.service rescue.service" LogText "Test: going to check several systemd targets now" for I in ${FILES}; do - LogText "Test: checking if target ${I} is available" - FILE=${SYSTEMD_DIRECTORY}/${I} + FILE="${SYSTEMD_DIRECTORY}/${I}" + LogText "Test: checking if target ${I} is available (${FILE})" if [ -f ${FILE} ]; then # Mark test as performed only when at least 1 target exists (e.g. Ubuntu 14.04 has limited systemd support) TEST_PERFORMED=1