Spelling and grammar fixes (#135)

This commit is contained in:
Ville Skyttä 2023-05-20 14:53:39 +03:00 committed by GitHub
parent 8114de4bbd
commit 8861097209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 50 additions and 50 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# ==============================================================================
# Home Assistant Community Add-ons: Bashio
# Bashio is an bash function library for use with Home Assistant add-ons.
# Bashio is a bash function library for use with Home Assistant add-ons.
#
# It contains a set of commonly used operations and can be used
# to be included in add-on scripts to reduce code duplication across add-ons.
@ -39,15 +39,15 @@ function bashio::pwned.is_safe_password() {
# ------------------------------------------------------------------------------
function bashio::pwned.occurances() {
local password="${1}"
local occurances
local occurrences
bashio::log.trace "${FUNCNAME[0]}" "<REDACTED PASSWORD>"
if ! occurances=$(bashio::pwned "${password}"); then
occurances="0"
if ! occurrences=$(bashio::pwned "${password}"); then
occurrences="0"
fi
echo -n "${occurances}"
echo -n "${occurrences}"
return "${__BASHIO_EXIT_OK}"
}