From a02cc62de545f69aded7bab2abb38374569389bc Mon Sep 17 00:00:00 2001 From: Christian Butterweck Date: Sun, 7 Jan 2024 18:21:59 +0100 Subject: [PATCH] Update controller.sh --- scripts/controller.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/controller.sh b/scripts/controller.sh index 6c5fcaa..5942c6d 100644 --- a/scripts/controller.sh +++ b/scripts/controller.sh @@ -173,7 +173,7 @@ download_awattar_prices() { fi if ! curl "$url" >"$file"; then log_message "E: Download of aWATTar prices from '$url' to '$file' failed." - rm $file + rm "$file" exit_with_cleanup 1 fi @@ -263,7 +263,7 @@ download_tibber_prices() { if [ ! -s "$file16" ]; then log_message "E: Tibber prices cannot be extracted to '$file16', please check your Tibber API Key. Fallback to aWATTar API." use_tibber=0 - rm $file + rm "$file" fi }