From 256198ff888896313135a92a609d5597ac51e311 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 9 Nov 2021 09:33:48 +0100 Subject: [PATCH] Fix shellcheck warnings (#89) --- lib/api.sh | 2 +- lib/pwned.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api.sh b/lib/api.sh index 3232d1f..10eca6d 100644 --- a/lib/api.sh +++ b/lib/api.sh @@ -51,7 +51,7 @@ function bashio::api.supervisor() { fi status=${response##*$'\n'} - response=${response%$status} + response=${response%"$status"} bashio::log.debug "Requested API resource: ${__BASHIO_SUPERVISOR_API}${resource}" bashio::log.debug "Request method: ${method}" diff --git a/lib/pwned.sh b/lib/pwned.sh index 81455e0..31a4a47 100644 --- a/lib/pwned.sh +++ b/lib/pwned.sh @@ -94,7 +94,7 @@ function bashio::pwned() { fi status=${response##*$'\n'} - response=${response%$status} + response=${response%"$status"} bashio::log.debug "Requested API resource: ${__BASHIO_HIBP_ENDPOINT}/${password:0:5}" bashio::log.debug "API HTTP Response code: ${status}"