Skip to content

Commit b5250f1

Browse files
committed
fix shellcheck warnings/errors
1 parent 15d261a commit b5250f1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

bake

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,11 @@ function bake_show_matching_tasks () {
406406
for task in $(bake_sorted_task_list); do
407407
if [[ "$task" == *$unknown_task* ]]; then
408408
matches="$matches $task"
409-
printf " %-30s %s\n" "$task" "$(bake_task_short_desc "$task")"
409+
printf " %-30s %s\\n" "$task" "$(bake_task_short_desc "$task")"
410410
if bake_is_registered_supertask "$task"; then
411411
for stask in $(bake_sorted_subtask_list); do
412412
if [[ "$stask" == $task-* ]]; then
413-
printf " %-30s %s\n" "$stask" "$(bake_task_short_desc "$stask")"
413+
printf " %-30s %s\\n" "$stask" "$(bake_task_short_desc "$stask")"
414414
fi
415415
done
416416
fi
@@ -427,9 +427,9 @@ function bake_show_matching_tasks () {
427427
function bake_show_all_tasks () {
428428
for task in $(bake_sorted_task_list); do
429429
if bake_is_registered_supertask "$task"; then
430-
printf " %-30s %s\n" "$task" "$(bake_task_short_desc "$task")"
430+
printf " %-30s %s\\n" "$task" "$(bake_task_short_desc "$task")"
431431
else
432-
printf " %-30s %s\n" "$task" "$(bake_task_short_desc "$task")"
432+
printf " %-30s %s\\n" "$task" "$(bake_task_short_desc "$task")"
433433
fi
434434
done
435435
}
@@ -581,20 +581,20 @@ function bake_init () {
581581
if [ -t 1 ]; then
582582
# shellcheck disable=SC2034
583583
BAKE_STDOUT_IS_TERMINAL="yes"
584-
BAKE_COLOR_NORMAL="\e[00m"
585-
BAKE_COLOR_RED="\e[00;31m"
586-
BAKE_COLOR_LRED="\e[01;31m"
587-
BAKE_COLOR_BLUE="\e[00;34m"
588-
BAKE_COLOR_LBLUE="\e[01;34m"
589-
BAKE_COLOR_GREEN="\e[00;32m"
590-
BAKE_COLOR_LGREEN="\e[01;32m"
591-
BAKE_COLOR_YELLOW="\e[00;33m"
592-
BAKE_COLOR_MAGENTA="\e[00;35m"
593-
BAKE_COLOR_LMAGENTA="\e[00;95m"
594-
BAKE_COLOR_CYAN="\e[00;36m"
595-
BAKE_COLOR_LCYAN="\e[00;96m"
596-
BAKE_COLOR_LGRAY="\e[00;37m"
597-
BAKE_COLOR_DGRAY="\e[00;90m"
584+
BAKE_COLOR_NORMAL="\\e[00m"
585+
BAKE_COLOR_RED="\\e[00;31m"
586+
BAKE_COLOR_LRED="\\e[01;31m"
587+
BAKE_COLOR_BLUE="\\e[00;34m"
588+
BAKE_COLOR_LBLUE="\\e[01;34m"
589+
BAKE_COLOR_GREEN="\\e[00;32m"
590+
BAKE_COLOR_LGREEN="\\e[01;32m"
591+
BAKE_COLOR_YELLOW="\\e[00;33m"
592+
BAKE_COLOR_MAGENTA="\\e[00;35m"
593+
BAKE_COLOR_LMAGENTA="\\e[00;95m"
594+
BAKE_COLOR_CYAN="\\e[00;36m"
595+
BAKE_COLOR_LCYAN="\\e[00;96m"
596+
BAKE_COLOR_LGRAY="\\e[00;37m"
597+
BAKE_COLOR_DGRAY="\\e[00;90m"
598598
fi
599599
}
600600

0 commit comments

Comments
 (0)