Fixed encryption location

This commit is contained in:
Brian Zalewski 2023-12-06 08:07:00 +00:00
parent 023bffc36b
commit c10f29d0ee

View file

@ -75,7 +75,7 @@ decryptKey() {
else else
installExpect installExpect
expect -c "set timeout -1 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" spawn age --decrypt --output "${XDG_CONFIG_HOME}/age/chezmoi.txt" "${XDG_DATA_HOME:-$HOME/.local/share}/chezmoi/home/key.txt.age"
expect \"Enter passphrase:\" expect \"Enter passphrase:\"
send \"${AGE_PASSWORD}\r\" send \"${AGE_PASSWORD}\r\"
expect eof" &> /dev/null || EXIT_CODE=$? expect eof" &> /dev/null || EXIT_CODE=$?