fix: use lookPath "bash"

This commit is contained in:
2026-01-21 12:16:00 +08:00
parent bfc2f0624d
commit 8991a9ee98
6 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!{{ lookPath "sh" }}
{{ if eq .chezmoi.os "darwin" -}} {{ if eq .chezmoi.os "darwin" -}}
defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2" defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!{{ lookPath "bash" }}
if command -v zsh &> /dev/null; then if command -v zsh &> /dev/null; then
zsh -i -c 'zinit update' zsh -i -c 'zinit update'

View File

@@ -1,5 +1,5 @@
{{ if and (not .unRootMode) (eq .chezmoi.os "darwin") -}} {{ if and (not .unRootMode) (eq .chezmoi.os "darwin") -}}
#!/bin/sh #!{{ lookPath "sh" }}
# Install Homebrew # Install Homebrew
command -v brew >/dev/null 2>&1 || \ command -v brew >/dev/null 2>&1 || \

View File

@@ -1,5 +1,5 @@
{{ if eq .chezmoi.os "linux" -}} {{ if eq .chezmoi.os "linux" -}}
#!/bin/bash #!{{ lookPath "bash" }}
{{/* **** unRoot Mode *************************************************** */ -}} {{/* **** unRoot Mode *************************************************** */ -}}
{{/* 如果強制設定unRoot */}} {{/* 如果強制設定unRoot */}}

View File

@@ -1,5 +1,5 @@
{{ if eq .chezmoi.os "linux" -}} {{ if eq .chezmoi.os "linux" -}}
#!/bin/bash #!{{ lookPath "bash" }}
# dconf.ini hash: {{ include "dconf.ini" | sha256sum }} # dconf.ini hash: {{ include "dconf.ini" | sha256sum }}
dconf load / < {{ joinPath .chezmoi.sourceDir "dconf.ini" | quote }} dconf load / < {{ joinPath .chezmoi.sourceDir "dconf.ini" | quote }}

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!{{ lookPath "bash" }}
# -------------------------- # --------------------------
# 擷取 remote list # 擷取 remote list