From 109db659321fd9857056d1ba6d8e534f94c74aab Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 20 Jun 2024 00:46:51 +0100 Subject: [PATCH] git.sh: simplified repo/backup check Signed-off-by: Leah Rowe --- include/git.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/git.sh b/include/git.sh index c1e7b4b..01ebff4 100755 --- a/include/git.sh +++ b/include/git.sh @@ -121,8 +121,7 @@ fetch_submodule() st="" for _st in repo file; do - _seval="if [ -n \"\$sub$_st\" ] || [ -n \"\$sub${_st}_bkup\" ]" - eval "$_seval; then st=\"\$st \$_st\"; fi" + eval "[ -n \"\$sub$_st\$sub${_st}_bkup\" ] && st=\"\$st \$_st\"" done st="${st# }" [ "$st" = "repo file" ] && $err "$mdir: repo/file both defined"