From 4322299c39e6657d9973e4c19b1fbf26865ecfba Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 29 Jan 2025 16:58:54 +0100 Subject: [PATCH] Drive-by fixing of errors reported by shellcheck for gravity.sh Signed-off-by: DL6ER --- gravity.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gravity.sh b/gravity.sh index f34cec40..c39a0f26 100755 --- a/gravity.sh +++ b/gravity.sh @@ -534,7 +534,7 @@ gravity_DownloadBlocklists() { # Save the file as list.#.domain saveLocation="${piholeDir}/list.${id}.${domain}.${domainsExtension}" - activeDomains[$i]="${saveLocation}" + activeDomains[i]="${saveLocation}" # Check if we can write to the save location file without actually creating # it (in case it doesn't exist) @@ -1055,7 +1055,7 @@ timeit(){ elapsed_time=$((end_time - start_time)) # Display the elapsed time - printf " %b--> took %d.%03d seconds%b\n" ${COL_BLUE} $((elapsed_time / 1000)) $((elapsed_time % 1000)) ${COL_NC} + printf " %b--> took %d.%03d seconds%b\n" "${COL_BLUE}" $((elapsed_time / 1000)) $((elapsed_time % 1000)) "${COL_NC}" return $ret }