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" "$@"
|
"$hook_script" "$@"
|
||||||
then
|
then
|
||||||
logerr "WARNING: Agent $(basename "$hook_script") had errors"
|
logerr "WARNING: Agent $(basename "$hook_script") had errors"
|
||||||
let errors++
|
(( errors++ )) || true
|
||||||
fi
|
fi
|
||||||
done < <(run-parts "${hook_dir}")
|
done < <(run-parts "${hook_dir}")
|
||||||
|
|
||||||
|
@ -419,7 +419,8 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||||
# Internal Initialization
|
# Internal Initialization
|
||||||
|
|
||||||
prog_name=$(basename "$0")
|
prog_name=$(basename "$0")
|
||||||
script_dir=$(dirname "$(readlink -f "$0")")
|
#script_dir=$(dirname "$(readlink -f "$0")")
|
||||||
|
script_dir=$(readlink -f "$(dirname "$0")")
|
||||||
|
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
|
|
Loading…
Reference in a new issue