From 7ef7e02f7325026c15c34fe8114d7d465e206a41 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 15 Nov 2025 16:55:27 +0000 Subject: [PATCH] lib.sh: reduce indentation in setvars Signed-off-by: Leah Rowe --- include/lib.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/include/lib.sh b/include/lib.sh index feb411e0..812341f4 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -85,19 +85,16 @@ setvars() _setvars="" if [ $# -lt 2 ]; then - return 0 - else - val="$1" - - shift 1 - - while [ $# -gt 0 ]; do - printf "%s=\"%s\"\n" "$1" "$val" - - shift 1 - done fi + + val="$1" + shift 1 + + while [ $# -gt 0 ]; do + printf "%s=\"%s\"\n" "$1" "$val" + shift 1 + done } # return 0 if project is single-tree, otherwise 1