From 8991a9ee98cff2d57eb9c50bf0267069215a6dfa Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Wed, 21 Jan 2026 12:16:00 +0800 Subject: [PATCH] fix: use lookPath "bash" --- .chezmoiscripts/run_once_after_apply.sh.tmpl | 2 +- .chezmoiscripts/run_onchange_after_install.sh.tmpl | 2 +- .../run_onchange_before_darwin-install-packages.sh.tmpl | 2 +- .../run_onchange_before_linux-install-packages.sh.tmpl | 2 +- .chezmoiscripts/run_onchange_linux-dconf-load.sh.tmpl | 2 +- dot_local/bin/executable_git-pushmulti | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.chezmoiscripts/run_once_after_apply.sh.tmpl b/.chezmoiscripts/run_once_after_apply.sh.tmpl index d2d32c2..917481d 100644 --- a/.chezmoiscripts/run_once_after_apply.sh.tmpl +++ b/.chezmoiscripts/run_once_after_apply.sh.tmpl @@ -1,4 +1,4 @@ -#!/bin/sh +#!{{ lookPath "sh" }} {{ if eq .chezmoi.os "darwin" -}} defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2" diff --git a/.chezmoiscripts/run_onchange_after_install.sh.tmpl b/.chezmoiscripts/run_onchange_after_install.sh.tmpl index dfdb5e5..13d18a8 100644 --- a/.chezmoiscripts/run_onchange_after_install.sh.tmpl +++ b/.chezmoiscripts/run_onchange_after_install.sh.tmpl @@ -1,4 +1,4 @@ -#!/bin/bash +#!{{ lookPath "bash" }} if command -v zsh &> /dev/null; then zsh -i -c 'zinit update' diff --git a/.chezmoiscripts/run_onchange_before_darwin-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_darwin-install-packages.sh.tmpl index 06e5892..3743d3f 100644 --- a/.chezmoiscripts/run_onchange_before_darwin-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_darwin-install-packages.sh.tmpl @@ -1,5 +1,5 @@ {{ if and (not .unRootMode) (eq .chezmoi.os "darwin") -}} -#!/bin/sh +#!{{ lookPath "sh" }} # Install Homebrew command -v brew >/dev/null 2>&1 || \ diff --git a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl index 3d7afa0..abfc540 100644 --- a/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl @@ -1,5 +1,5 @@ {{ if eq .chezmoi.os "linux" -}} -#!/bin/bash +#!{{ lookPath "bash" }} {{/* **** unRoot Mode *************************************************** */ -}} {{/* 如果強制設定unRoot, */}} diff --git a/.chezmoiscripts/run_onchange_linux-dconf-load.sh.tmpl b/.chezmoiscripts/run_onchange_linux-dconf-load.sh.tmpl index c55c3f9..8c725cf 100644 --- a/.chezmoiscripts/run_onchange_linux-dconf-load.sh.tmpl +++ b/.chezmoiscripts/run_onchange_linux-dconf-load.sh.tmpl @@ -1,5 +1,5 @@ {{ if eq .chezmoi.os "linux" -}} -#!/bin/bash +#!{{ lookPath "bash" }} # dconf.ini hash: {{ include "dconf.ini" | sha256sum }} dconf load / < {{ joinPath .chezmoi.sourceDir "dconf.ini" | quote }} diff --git a/dot_local/bin/executable_git-pushmulti b/dot_local/bin/executable_git-pushmulti index bb2defa..9e73c10 100644 --- a/dot_local/bin/executable_git-pushmulti +++ b/dot_local/bin/executable_git-pushmulti @@ -1,4 +1,4 @@ -#!/bin/bash +#!{{ lookPath "bash" }} # -------------------------- # 擷取 remote list