From 67d7c98042321f2a89ee68b3c9a40d485d110fce Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 Nov 2017 13:43:42 +0100 Subject: [busybox] Only clone repo if it doesn't exist --- core/modules/busybox/module.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/modules/busybox') diff --git a/core/modules/busybox/module.build b/core/modules/busybox/module.build index b35b6576..80d7c8ba 100644 --- a/core/modules/busybox/module.build +++ b/core/modules/busybox/module.build @@ -1,7 +1,9 @@ #!/bin/bash fetch_source() { - git clone --depth 1 "${REQUIRED_GIT}" --branch "$REQUIRED_BRANCH" src || perror "Could not clone busybox git" + if ! [ -d "etc/.git" ]; then + git clone --depth 1 "${REQUIRED_GIT}" --branch "$REQUIRED_BRANCH" src || perror "Could not clone busybox git" + fi cd src || perror "Could not cd to src" # Patch image centering and background filling if not patched yet if ! grep -q "bcenter_image" "miscutils/fbsplash.c"; then -- cgit v1.2.3-55-g7522