From bafd58387fd4b0c9d032ba266feeb3e751944738 Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Fri, 5 Nov 2021 20:43:37 +0000 Subject: [PATCH] Simplify sourcing of environment overriding script Signed-off-by: Dom Rodriguez --- clean_build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clean_build.sh b/clean_build.sh index 64e014c0..cbe306c6 100755 --- a/clean_build.sh +++ b/clean_build.sh @@ -29,9 +29,7 @@ fi # Source local build variables to the environment, if available. # If not, continue as normal, and silently. -if [ -e "./build_env.sh" ]; then - . "./build_env.sh" -fi +[ -e "./build_env.sh" ] && . "./build_env.sh" # Initialise Git submodules git submodule update --init --recursive