Skip to content

Commit 5b1afd9

Browse files
committed
build-setup.sh: prevent git clone when only building container
When someone wants to just build the container, there's no need to clone openbmc. Tested: - Confirmed no clone when CONTAINER_ONLY set to true - Confirmed a clone when CONTAINER_ONLY is not set Change-Id: I7765c8511cffe2db9b94f3e8e5815300fd9c65f1 Signed-off-by: Andrew Geissler <[email protected]>
1 parent 3ee62fb commit 5b1afd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fi
124124
echo "Build started, $(date)"
125125

126126
# If the obmc_dir directory doesn't exist clone it in
127-
if [ ! -d "${obmc_dir}" ]; then
127+
if [ ! -d "${obmc_dir}" ] && [ "${container_only}" = false ]; then
128128
echo "Clone in openbmc master to ${obmc_dir}"
129129
git clone https://github.com/openbmc/openbmc "${obmc_dir}"
130130
fi

0 commit comments

Comments
 (0)