From 26fc3f13254e38ddd6903e7e18e0945b4e6fe63d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 30 Sep 2023 20:04:02 +0100 Subject: general code formatting cleanup in shell scripts Signed-off-by: Leah Rowe --- script/handle/make/config | 5 ++--- script/handle/make/file | 13 ++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'script/handle') diff --git a/script/handle/make/config b/script/handle/make/config index 72cba193..0ae7796f 100755 --- a/script/handle/make/config +++ b/script/handle/make/config @@ -71,9 +71,8 @@ handle_targets() handle_defconfig || fail "error handling config file" done - if [ "${mode}" = "all" ]; then - printf "Done! The files are stored under %s/\n\n" "${elfdir}" - fi + [ "${mode}" = "all" ] || return 0 + printf "Done! The files are stored under %s/\n\n" "${elfdir}" } handle_defconfig() diff --git a/script/handle/make/file b/script/handle/make/file index 19807425..b76eadcd 100755 --- a/script/handle/make/file +++ b/script/handle/make/file @@ -34,13 +34,12 @@ handle_dependencies() [ -d "${project}" ] || \ err "handle_dependencies: ${project%/*} not downloaded" - if [ "${project}" = "uefitool" ]; then - ( - cd uefitool || err "handle_dependencies: !cd uefitool" - cmake UEFIExtract/ || [ -f Makefile ] || \ - err "handle_dependencies: !cmake UEFIExtract/" - ) - fi + [ "${project}" = "uefitool" ] || return 0 # TODO: remove hardcoding + ( + cd uefitool || err "handle_dependencies: !cd uefitool" + cmake UEFIExtract/ || [ -f Makefile ] || \ + err "handle_dependencies: !cmake UEFIExtract/" + ) } run_make_command() -- cgit v1.2.1