diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-20 00:46:51 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-20 00:46:51 +0100 |
commit | 4f6dda136663e5efd23a82024439d7a40c7bb349 (patch) | |
tree | 6e7e34ead081d2e46d0c9c850850398e55bc156e /include | |
parent | 185d76f57e6240d44e1b2a7b6630ec9b5811a04e (diff) |
git.sh: simplified repo/backup check
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/git.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh index c1e7b4ba..01ebff4b 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" |