This commit is contained in:
Brian Zalewski 2023-12-06 07:51:54 +00:00
parent 93d64340c1
commit 3d056b4605
2 changed files with 3 additions and 1 deletions

View file

@ -78,7 +78,7 @@ decryptKey() {
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'
decryptionFailure decryptionFailure

View file

@ -14,6 +14,7 @@ end
brew "age" brew "age"
# Ensure macOS Bash gets upgraded to 5+ # Ensure macOS Bash gets upgraded to 5+
brew "bash" brew "bash"
brew "expect"
brew "gawk" brew "gawk"
brew "git-delta" brew "git-delta"
brew "glow" brew "glow"
@ -21,6 +22,7 @@ brew "gnupg"
brew "go" brew "go"
brew "gsed" brew "gsed"
brew "gum" brew "gum"
brew "htmlq"
brew "jq" brew "jq"
brew "node" brew "node"
brew "progress" brew "progress"