From c7413599d2c194633f880245d8641eadcabf3089 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 9 Apr 2019 11:58:41 +0100 Subject: [PATCH] fix(check): prevent restart from bypassing check_executable (#2278) --- lgsm/functions/check_executable.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/check_executable.sh b/lgsm/functions/check_executable.sh index c4e7947ef..f0f0a67b7 100644 --- a/lgsm/functions/check_executable.sh +++ b/lgsm/functions/check_executable.sh @@ -9,10 +9,11 @@ local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" # Check if executable exists if [ ! -f "${executabledir}/${execname}" ]; then - fn_print_fail_nl "executable was not found:" - echo " * ${executabledir}/${execname}" + fn_print_fail_nl "executable was not found" + echo "* ${executabledir}/${execname}" if [ -d "${lgsmlogdir}" ]; then fn_script_log_fatal "Executable was not found: ${executabledir}/${execname}" fi + unset exitbypass core_exit.sh fi