Skip to content

Commit

Permalink
fix(chezmoi): continue if atuin import finds no histfile(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckagerer committed Mar 1, 2024
1 parent dc7a1a5 commit 8b9fc5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/chezmoi/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chezmoi",
"id": "chezmoi",
"version": "1.2.0",
"version": "1.2.1",
"description": "Install chezmoi",
"documentationURL": "https://github.com/ckagerer/devcontainer-features/tree/main/src/chezmoi",
"options": {
Expand Down
4 changes: 2 additions & 2 deletions src/chezmoi/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ if [ -n "${ATUIN_USER}" ] && [ -n "${ATUIN_PASSWORD}" ] && [ -n "${ATUIN_KEY}" ]
# Import history if configured
if [ -n "${ATUIN_IMPORT_HISTORY}" ]; then
if command -v bash &>/dev/null; then
sudo --user "${CHEZMOI_USER}" atuin import bash
sudo --user "${CHEZMOI_USER}" atuin import bash || true
fi
if command -v zsh &>/dev/null; then
sudo --user "${CHEZMOI_USER}" atuin import zsh
sudo --user "${CHEZMOI_USER}" atuin import zsh || true
fi
fi
fi
Expand Down

0 comments on commit 8b9fc5f

Please sign in to comment.