#!/bin/bash # afterFileEdit: log edit. Format can be enabled by uncommenting the block below. HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)" # shellcheck source=lib.sh . "${HOOKS_DIR}/lib.sh" input=$(cat) path=$(echo "$input" | jq -r '.path // .file_path // .fsPath // .file // ""') log_event "afterFileEdit" "path=$path" echo '{}' exit 0