Update .local/share/chezmoi/home/.chezmoiscripts/universal/run_once_before_decrypt-age-key.tmpl

This commit is contained in:
Brian Zalewski 2022-11-30 09:50:02 +00:00
parent d759fe61b9
commit 80207bb1b9

View file

@ -4,7 +4,7 @@ XDG_CONFIG_HOME="$HOME/.config"
if [ ! -f "${XDG_CONFIG_HOME}/age/chezmoi.txt" ]; then
mkdir -p "${XDG_CONFIG_HOME}/age"
echo "Press CTRL+C if you have not set up your encryption token yet"
echo "PRESS ENTER if you have not set up your encryption token yet"
age --decrypt --output "${XDG_CONFIG_HOME}/age/chezmoi.txt" "{{ .chezmoi.sourceDir }}/key.txt.age" || EXIT_CODE=$?
if [ -n "$EXIT_CODE" ]; then
echo "Proceeding without decrypting age encryption key stored at ~/.local/share/chezmoi/home/key.txt.age"