Fix script_dir for symlink setup

This commit is contained in:
Eric Renfro 2021-08-23 10:58:05 -04:00
parent 4e5322b96f
commit 0563515cdf
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
1 changed files with 3 additions and 2 deletions

View File

@ -274,7 +274,7 @@ run-hook() {
"$hook_script" "$@"
then
logerr "WARNING: Agent $(basename "$hook_script") had errors"
let errors++
(( errors++ )) || true
fi
done < <(run-parts "${hook_dir}")
@ -419,7 +419,8 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
# Internal Initialization
prog_name=$(basename "$0")
script_dir=$(dirname "$(readlink -f "$0")")
#script_dir=$(dirname "$(readlink -f "$0")")
script_dir=$(readlink -f "$(dirname "$0")")
# Main