style: fix code style

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-05-27 11:12:20 +02:00
parent 6f9d22fe80
commit 64a6ba462a
6 changed files with 11 additions and 10 deletions

View File

@@ -209,7 +209,7 @@ function create_telegram_conf() {
elif (( telegram_bot_count > 1 )); then
local j=0 re="^[1-9][0-9]*$"
for ((i=1; i <= telegram_bot_count; i++ )); do
for (( i=1; i <= telegram_bot_count; i++ )); do
### overwrite config folder if name is only a number
if [[ ${names[j]} =~ ${re} ]]; then
cfg_dir="${KLIPPER_CONFIG}/printer_${names[${j}]}"
@@ -219,7 +219,7 @@ function create_telegram_conf() {
### write multi instance config
write_telegram_conf "${cfg_dir}" "${cfg}" "${log}"
j=$((j+1))
j=$(( j + 1 ))
done && unset j
else