Skip to content

Get login email from environment variable #6

Description

@metbril

My terminal scripts are in a dotfiles repo and therefor publicly available. I don't want the email address to be visible.
To fix this, I put the email address in a private environment variable BW_EMAIL.

I amended the script like this:

#Set Bitwarden login name (email address)
if [[ -z "${BW_EMAIL}" ]]; then
	user_email="<INSERT YOUR BITWARDEN LOGIN EMAIL HERE>"
	#EXAMPLE:
	#user_email="dh024@domain.com"  
else
	user_email="${BW_EMAIL}"
fi
echo E-mail: $user_email

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions