Update .local/share/chezmoi/home/.chezmoiscripts/universal/run_once_before_decrypt-age-key.tmpl
This commit is contained in:
parent
d759fe61b9
commit
80207bb1b9
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
|
||||||
if [ ! -f "${XDG_CONFIG_HOME}/age/chezmoi.txt" ]; then
|
if [ ! -f "${XDG_CONFIG_HOME}/age/chezmoi.txt" ]; then
|
||||||
mkdir -p "${XDG_CONFIG_HOME}/age"
|
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=$?
|
age --decrypt --output "${XDG_CONFIG_HOME}/age/chezmoi.txt" "{{ .chezmoi.sourceDir }}/key.txt.age" || EXIT_CODE=$?
|
||||||
if [ -n "$EXIT_CODE" ]; then
|
if [ -n "$EXIT_CODE" ]; then
|
||||||
echo "Proceeding without decrypting age encryption key stored at ~/.local/share/chezmoi/home/key.txt.age"
|
echo "Proceeding without decrypting age encryption key stored at ~/.local/share/chezmoi/home/key.txt.age"
|
||||||
|
|
Loading…
Reference in a new issue