This commit is contained in:
Brian Zalewski 2023-12-06 07:56:27 +00:00
parent 3d056b4605
commit bcbfe39409

View file

@ -76,8 +76,8 @@ decryptKey() {
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}/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=$?
if [ -n "$EXIT_CODE" ]; then if [ -n "$EXIT_CODE" ]; then
logg info 'There was an issue decrypting the key.txt.age file with the provided AGE_PASSWORD' logg info 'There was an issue decrypting the key.txt.age file with the provided AGE_PASSWORD'