Explorar o código

fix: add execname to check_executable

Daniel Gibbs %!s(int64=3) %!d(string=hai) anos
pai
achega
8a5c28ae9c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lgsm/functions/check_executable.sh

+ 1 - 0
lgsm/functions/check_executable.sh

@@ -8,6 +8,7 @@
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 # Check if executable exists
+execname=$(basename "${executable}")
 if [ ! -f "${executabledir}/${execname}" ]; then
 	fn_print_fail_nl "executable was not found"
 	echo -e "* ${executabledir}/${execname}"