fix BASH_IT_LEGACY_PASS logic to be and instead of or
parent
b5f2cc3d4e
commit
0c10804acf
|
|
@ -68,9 +68,9 @@ function passgen ()
|
||||||
echo "Without (use this as the password): $(echo $pass | tr -d ' ')"
|
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.
|
# 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
|
then
|
||||||
alias pass=passgen
|
alias pass=passgen
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue