Skip to content

Commit

Permalink
Fix hooks dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Mar 12, 2024
1 parent 2a3918f commit 0ddc067
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/include/hooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ run_hook() {
[ -d "$SCRIPT_ROOT/hooks" ] || return
[ -d "$SCRIPT_ROOT/hooks/$hook_name" ] || return

pushd "$SCRIPT_ROOT" >/dev/null || exit 1


local hook_script
while read -r hook_script
do
Expand All @@ -35,8 +32,6 @@ run_hook() {
err "Error: failed to run $hook_script"
fi
done < <(find "$SCRIPT_ROOT/hooks/$hook_name/" -name "*.sh" | LC_ALL=C sort)

popd >/dev/null || exit 1 # "$SCRIPT_ROOT"
}

register_hook() {
Expand Down

0 comments on commit 0ddc067

Please sign in to comment.