From 3d85bd17738fe9dd571d953e83490088472984a6 Mon Sep 17 00:00:00 2001 From: Joeri de Ruiter Date: Fri, 11 Mar 2022 11:29:20 +0100 Subject: [PATCH 1/2] fix: make header color configurable --- todofi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todofi.sh b/todofi.sh index 0521a26..ed6b6df 100755 --- a/todofi.sh +++ b/todofi.sh @@ -286,8 +286,6 @@ linescount() { fi } -TODOFISH_HEADER="Todofi.sh" - config() { HELP="${TODOFISH_HEADER} - Configuration files" @@ -486,6 +484,8 @@ while getopts "h?af:F:c:d:" opt; do esac done +TODOFISH_HEADER="Todofi.sh" + if [[ $ADD_MODE ]]; then add else From b8486eb47f5920039b654a5a10406d94c1282ee8 Mon Sep 17 00:00:00 2001 From: Joeri de Ruiter Date: Fri, 11 Mar 2022 13:10:27 +0100 Subject: [PATCH 2/2] fix: only set TODOFISH_HEADER if not set yet --- todofi.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/todofi.sh b/todofi.sh index ed6b6df..87e9d65 100755 --- a/todofi.sh +++ b/todofi.sh @@ -484,7 +484,9 @@ while getopts "h?af:F:c:d:" opt; do esac done -TODOFISH_HEADER="Todofi.sh" +if [ ! -v TODOFISH_HEADER ]; then + TODOFISH_HEADER="Todofi.sh" +fi if [[ $ADD_MODE ]]; then add