From e4f8de44f9af349df07e475c8cb745823aaee2f3 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Wed, 6 Dec 2023 08:03:05 +0000 Subject: [PATCH] Latest --- .../universal/run_before_02-decrypt-age-key.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_before_02-decrypt-age-key.sh.tmpl b/home/.chezmoiscripts/universal/run_before_02-decrypt-age-key.sh.tmpl index 2160937e..6c5f2292 100644 --- a/home/.chezmoiscripts/universal/run_before_02-decrypt-age-key.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_02-decrypt-age-key.sh.tmpl @@ -76,8 +76,8 @@ decryptKey() { installExpect expect -c "set timeout -1 spawn age --decrypt --output "${XDG_CONFIG_HOME}/age/chezmoi.txt" "${XDG_DATA_HOME:-$HOME/.local/share}/home/key.txt.age" - expect "Enter passphrase:" - send "${AGE_PASSWORD}\r" + expect \"Enter passphrase:\" + send \"${AGE_PASSWORD}\r\" expect eof" &> /dev/null || EXIT_CODE=$? if [ -n "$EXIT_CODE" ]; then logg info 'There was an issue decrypting the key.txt.age file with the provided AGE_PASSWORD'