Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion decrypt_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source "$(dirname ${BASH_SOURCE[0]})/common.sh"

cd $1

[[ "${password+defined}" = defined ]] || read -p "Enter key passphrase (empty if none): " -s password
[[ "${password+defined}" = defined ]] || read -r -p "Enter key passphrase (empty if none): " -s password
echo

tmp="$(mktemp -d /dev/shm/decrypt_keys.XXXXXXXXXX)"
Expand Down
6 changes: 3 additions & 3 deletions encrypt_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ source "$(dirname ${BASH_SOURCE[0]})/common.sh"

cd $1

read -p "Enter old key passphrase (empty if none): " -s password
read -r -p "Enter old key passphrase (empty if none): " -s password
echo

read -p "Enter new key passphrase: " -s new_password
read -r -p "Enter new key passphrase: " -s new_password
echo
read -p "Confirm new key passphrase: " -s confirm_new_password
read -r -p "Confirm new key passphrase: " -s confirm_new_password
echo

if [[ $new_password != $confirm_new_password ]]; then
Expand Down