Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- creds_reencrypt_everything() {
- local name
- local credentials
- local username
- local password
- shopt -s nullglob
- for file in "${CREDS_DIR}/"*.creds; do
- name="${file%.creds}"
- credentials="$(creds_run_gpg -d "$(creds_file "${name}")")"
- username="$(< "${credentials}" sed -n '1p')"
- password="$(< "${credentials}" sed -n '2p')"
- creds_save_credentials "${name}" "${CREDS_REENCRYPT}" "${username}" "${password}"
- done
- shopt -u nullglob
- if creds_has_git; then
- creds_git commit -m "${CREDS_REENCRYPT}"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement