Fix script_dir for symlink setup
This commit is contained in:
parent
4e5322b96f
commit
0563515cdf
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue