Switch init_pre hook to Deno (typescript)

This commit is contained in:
2025-03-03 02:22:01 -06:00
parent 2f1fbe5052
commit 733d070d6d
4 changed files with 30 additions and 13 deletions

View File

@@ -3,5 +3,5 @@
# chezmoi update --init does not invoke the 'hooks.init.pre' hook, so we do it ourselves
if grep -q 'init' <<<$CHEZMOI_ARGS; then
# CHEZMOI_UPDATE is just a hint in case we need to know if we're updating
CHEZMOI_UPDATE=1 $(dirname $0)/.init_pre.sh
CHEZMOI_UPDATE=1 $(dirname $0)/.init_pre.ts
fi