Skip to content

Commit 343b19d

Browse files
committed
fix(chezmoi): keep going option in atuin init script
1 parent fbc5b8d commit 343b19d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/chezmoi/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "chezmoi",
33
"id": "chezmoi",
4-
"version": "1.6.0",
4+
"version": "1.6.1",
55
"description": "Install chezmoi",
66
"documentationURL": "https://github.com/ckagerer/devcontainer-features/tree/main/src/chezmoi",
77
"options": {

src/chezmoi/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tee "$INIT_ATUIN_SCRIPT_PATH" >/dev/null <<EOF
105105
# (C) Copyright 2025 Christian Kagerer
106106
# Purpose: Initialize Atuin login and sync for chezmoi devcontainer feature
107107
108-
KEEP_GOING="\${KEEP_GOING:-false}"
108+
KEEP_GOING="${KEEP_GOING:-false}"
109109
110110
if [[ "\${KEEP_GOING}" == "true" ]]; then
111111
set +o errexit +o nounset +o pipefail
@@ -132,6 +132,10 @@ if [ -n "\${ATUIN_USER}" ] && [ -n "\${ATUIN_PASSWORD}" ] && [ -n "\${ATUIN_KEY}
132132
atuin login --username "\${ATUIN_USER}" --password "\${ATUIN_PASSWORD}" --key "\${ATUIN_KEY}" || true
133133
atuin sync
134134
fi
135+
136+
if [[ "\${KEEP_GOING}" == "true" ]]; then
137+
exit 0
138+
fi
135139
EOF
136140

137141
chmod 755 "$INIT_ATUIN_SCRIPT_PATH"

0 commit comments

Comments
 (0)