Skip to content
Permalink
Browse files

fix(check): prevent restart from bypassing check_executable (#2278)

  • Loading branch information...
dgibbs64 committed Apr 9, 2019
1 parent 62a49df commit c7413599d2c194633f880245d8641eadcabf3089
Showing with 3 additions and 2 deletions.
  1. +3 −2 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

0 comments on commit c741359

Please sign in to comment.
You can’t perform that action at this time.