From 8a5c457a4c71589a917a8ea2ac4b4e4d064c8f02 Mon Sep 17 00:00:00 2001 From: Paul Sinclair <24625998+sinclairpaul@users.noreply.github.com> Date: Wed, 5 Aug 2020 05:39:32 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=8FTypos=20(#30)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/addons.sh | 2 +- lib/cache.sh | 2 +- lib/os.sh | 2 +- lib/pwned.sh | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/addons.sh b/lib/addons.sh index c34464b..b67d6f7 100644 --- a/lib/addons.sh +++ b/lib/addons.sh @@ -1187,7 +1187,7 @@ function bashio::require.protected() { bashio::log.fatal "protection mode is enabled on this add-on." bashio::log.fatal bashio::log.fatal "Unfortunately, it has been disabled." - bashio::log.fatal "Pleas enable it again!" + bashio::log.fatal "Please enable it again!" bashio::log.fatal "" bashio::log.fatal "Steps:" bashio::log.fatal " - Go to the Supervisor Panel." diff --git a/lib/cache.sh b/lib/cache.sh index c1baba1..7ae2ac5 100644 --- a/lib/cache.sh +++ b/lib/cache.sh @@ -63,7 +63,7 @@ function bashio::cache.set() { fi if ! printf "%s" "$value" > "${__BASHIO_CACHE_DIR}/${key}.cache"; then - bashio::log.warning "An error occured while storing ${key} to cache" + bashio::log.warning "An error occurred while storing ${key} to cache" return "${__BASHIO_EXIT_NOK}" fi diff --git a/lib/os.sh b/lib/os.sh index 0785689..1a11846 100644 --- a/lib/os.sh +++ b/lib/os.sh @@ -36,7 +36,7 @@ function bashio::os.config_sync() { } # ------------------------------------------------------------------------------ -# Returns a JSON object with generic Home Asssistant information. +# Returns a JSON object with generic Home Assistant information. # # Arguments: # $1 Cache key to store results in (optional) diff --git a/lib/pwned.sh b/lib/pwned.sh index 342217f..81455e0 100644 --- a/lib/pwned.sh +++ b/lib/pwned.sh @@ -15,16 +15,16 @@ # ------------------------------------------------------------------------------ function bashio::pwned.is_safe_password() { local password="${1}" - local occurances + local occurrences bashio::log.trace "${FUNCNAME[0]}" "" - if ! occurances=$(bashio::pwned "${password}"); then + if ! occurrences=$(bashio::pwned "${password}"); then bashio::log.warning "Could not check password, assuming it is safe." return "${__BASHIO_EXIT_OK}" fi - if [[ "${occurances}" -ne 0 ]]; then + if [[ "${occurrences}" -ne 0 ]]; then return "${__BASHIO_EXIT_NOK}" fi @@ -32,7 +32,7 @@ function bashio::pwned.is_safe_password() { } # ------------------------------------------------------------------------------ -# Gets the number of occurances of the password in the list. +# Gets the number of occurrences of the password in the list. # # Arguments: # $1 The password to check @@ -80,7 +80,7 @@ function bashio::pwned() { ) bashio::log.debug "Password SHA1: ${password}" - # Check with have I Been Powned, only send the first 5 chars of the hash + # Check with have I Been Pwned, only send the first 5 chars of the hash if ! response=$(curl \ --silent \ --show-error \ @@ -111,7 +111,7 @@ function bashio::pwned() { fi if [[ "${status}" -ne 200 ]]; then - bashio::log.error "Unknown HIBP HTTP error occured." + bashio::log.error "Unknown HIBP HTTP error occurred." return "${__BASHIO_EXIT_NOK}" fi