fix BASH_IT_LEGACY_PASS logic to be and instead of or

pull/1288/head
Dayne Broderson 2018-12-19 08:04:30 -09:00
parent b5f2cc3d4e
commit 0c10804acf
1 changed files with 2 additions and 2 deletions

View File

@ -68,9 +68,9 @@ function passgen ()
echo "Without (use this as the password): $(echo $pass | tr -d ' ')"
}
# Create alias pass to passgen when pass isn't installed or
# Create alias pass to passgen when pass isn't installed and
# BASH_IT_LEGACY_PASS is true.
if ! command -v pass &>/dev/null || [ "$BASH_IT_LEGACY_PASS" = true ]
if ! command -v pass &>/dev/null && [ "$BASH_IT_LEGACY_PASS" = true ]
then
alias pass=passgen
fi