From 34ded35fa616a323f582d3e942d7b49ac9beeef4 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 28 Dec 2023 16:34:45 +0000 Subject: lbmk scripts: general code cleanup Signed-off-by: Leah Rowe --- include/git.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index 6184ba0c..b0ebc937 100755 --- a/include/git.sh +++ b/include/git.sh @@ -90,8 +90,7 @@ verify_config() { [ -z "${rev+x}" ] && err 'verify_config: rev not set' [ -z "${loc+x}" ] && err 'verify_config: loc not set' - [ -z "${url+x}" ] && err 'verify_config: url not set' - return 0 + [ -z "${url+x}" ] && err 'verify_config: url not set'; return 0 } clone_project() @@ -146,6 +145,5 @@ git_am_patches() [ ! -d "${patches}" ] && continue git_am_patches "${sdir}" "${patches}" done - [ "${patchfail}" = "y" ] && return 1 - return 0 + [ "${patchfail}" = "y" ] && return 1; return 0 } -- cgit v1.2.1