From 36ab8936824d0296c0daffa3287b82753fc82968 Mon Sep 17 00:00:00 2001 From: Oliver Kaufmann <4414498+okaufmann@users.noreply.github.com> Date: Sat, 23 Mar 2024 23:49:06 +0100 Subject: [PATCH] fix: use template variable for source dir --- run_once_before_install-packages-darwin.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_once_before_install-packages-darwin.sh.tmpl b/run_once_before_install-packages-darwin.sh.tmpl index 565e6c2..35037dc 100644 --- a/run_once_before_install-packages-darwin.sh.tmpl +++ b/run_once_before_install-packages-darwin.sh.tmpl @@ -23,7 +23,7 @@ fi echo 'Install brew packages' echo '------------' brew tap homebrew/bundle -brew bundle --no-lock --file="$(chezmoi source-path)/Brewfile" +brew bundle --no-lock --file="{{ .chezmoi.sourceDir }}/Brewfile" brew link --force libpq echo 'Install oh-my-zsh' @@ -45,7 +45,7 @@ echo '------------' echo 'Initiate pre-commit.' echo '------------' if [ -d "~/git-template" ]; then - echo -e "\033[33mThe folder '$(chezmoi source-path)/git-template' already exists.\033[0m"^ + echo -e "\033[33mThe folder '{{ .chezmoi.sourceDir }}/git-template' already exists.\033[0m"^ else pre-commit init-templatedir ~/.git-template fi