From 2c19cd31228f5ed398c3ca9e5b0e3cdfc5224769 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Wed, 22 Sep 2021 13:42:18 +0200 Subject: [PATCH] fix(tools): another fix for format_python.sh after shellcheck changes --- script/source_format/format_python.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/source_format/format_python.sh b/script/source_format/format_python.sh index 294515ef3..d136b935c 100755 --- a/script/source_format/format_python.sh +++ b/script/source_format/format_python.sh @@ -37,9 +37,9 @@ do done for SRC_DIR in "${DIRS[@]}"; do - isort --profile black "${CHECK}" "${SRC_DIR}" + isort --profile black ${CHECK:+"$CHECK"} "${SRC_DIR}" ((FAILURES+=$?)) - black -l 100 "${CHECK}" "${SRC_DIR}" + black -l 100 ${CHECK:+"$CHECK"} "${SRC_DIR}" ((FAILURES+=$?)) done