Skip to content

Commit 12a4004

Browse files
committed
Add --force to chezmoi init to avoid TTY prompts in non-interactive environments
1 parent dd2ec12 commit 12a4004

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ fi
1313
# If running from the cloned repo, use the current directory
1414
# Otherwise, clone from GitHub
1515
if [ -f "$(dirname "$0")/.chezmoiignore" ]; then
16-
chezmoi init --source="$(dirname "$0")" --apply
16+
chezmoi init --source="$(dirname "$0")" --force --apply
1717
else
18-
chezmoi init jpulec --apply
18+
chezmoi init jpulec --force --apply
1919
fi
2020

2121
echo "Dotfiles applied!"

0 commit comments

Comments
 (0)