mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 12:01:25 +00:00
Spelling and grammar fixes (#135)
This commit is contained in:
parent
8114de4bbd
commit
8861097209
32 changed files with 50 additions and 50 deletions
10
lib/pwned.sh
10
lib/pwned.sh
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue